:root {
  color-scheme: dark;
  --bg: #05060a;
  --nav: #171a20;
  --panel: #11141b;
  --panel-2: #181c24;
  --line: #272c37;
  --text: #f5f7fa;
  --muted: #99a1af;
  --cyan: #2be0c2;
  --cyan-2: #52e5ef;
  --shell: min(1760px, calc(100% - 56px));
  --ease: cubic-bezier(.2, .72, .2, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body { margin: 0; padding-top: 72px; overflow-x: hidden; background: var(--bg); color: var(--text); font: 16px/1.5 "Segoe UI Variable", "Segoe UI", Arial, sans-serif; }
body.is-locked { overflow: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
button { color: inherit; }
.page-shell { width: var(--shell); margin-inline: auto; }
.deferred-section { content-visibility: auto; contain-intrinsic-size: 700px; }
.skip-link { position: fixed; top: 8px; left: 12px; z-index: 999; padding: 10px 14px; border-radius: 6px; background: var(--cyan); color: #03110e; transform: translateY(-160%); }
.skip-link:focus { transform: none; }
:focus-visible { outline: 2px solid var(--cyan-2); outline-offset: 3px; }

/* Header and navigation */
.topbar { position: fixed; inset: 0 0 auto; z-index: 100; height: 72px; padding-inline: max(28px, calc((100vw - 1760px) / 2)); display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; column-gap: 22px; background: rgba(23, 26, 32, .96); border-bottom: 1px solid #262a33; box-shadow: 0 12px 30px rgba(0, 0, 0, .18); backdrop-filter: blur(16px); }
.brand { display: inline-flex; align-items: center; }
.brand img { width: 170px; height: auto; }
.nav-toggle, .icon-button { width: 44px; height: 44px; padding: 0; display: grid; place-items: center; border: 0; background: transparent; cursor: pointer; }
.nav-toggle { display: none; }
.nav-toggle svg, .icon-button svg, .search-button svg { width: 25px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; }
.main-nav { height: 100%; display: flex; align-items: stretch; justify-self: end; gap: 2px; }
.main-nav > a, .nav-link { min-height: 100%; padding: 0 10px; display: flex; align-items: center; gap: 6px; border: 0; background: transparent; color: #c3c9d3; font-size: 13px; font-weight: 700; white-space: nowrap; cursor: pointer; }
.main-nav > a { position: relative; }
.main-nav > a:hover, .main-nav > a:focus-visible, .nav-link:hover, .nav-link:focus-visible { color: #fff; background: rgba(255, 255, 255, .055); }
.main-nav > a.is-current, .nav-link.is-current { color: var(--cyan); }
.main-nav > a.is-current::after { content: ""; position: absolute; right: 10px; bottom: 0; left: 10px; height: 2px; background: var(--cyan); }
.nav-item { position: relative; display: flex; align-items: stretch; }
.nav-link svg { width: 15px; fill: none; stroke: currentColor; stroke-width: 1.8; transition: transform .18s ease; }
.nav-item.is-open > .nav-link svg { transform: rotate(180deg); }
.nav-submenu { position: absolute; top: 100%; left: 0; z-index: 3; width: max-content; min-width: 210px; padding: 7px; border: 1px solid #343a47; border-radius: 0 0 10px 10px; background: rgba(23, 26, 32, .99); box-shadow: 0 20px 48px rgba(0, 0, 0, .46); opacity: 0; visibility: hidden; transform: translateY(-7px); pointer-events: none; transition: opacity .16s ease, transform .16s ease, visibility .16s; }
.nav-item:hover > .nav-submenu, .nav-item.is-open > .nav-submenu { opacity: 1; visibility: visible; transform: none; pointer-events: auto; }
.nav-submenu a { min-height: 42px; padding: 0 12px; display: flex; align-items: center; border-radius: 6px; color: #bac2ce; font-size: 13px; font-weight: 650; }
.nav-submenu a:hover, .nav-submenu a:focus-visible { background: #292f3a; color: #fff; }
.search-button { min-width: 126px; height: 46px; padding: 0 18px; display: flex; align-items: center; justify-content: center; gap: 8px; border: 0; border-radius: 6px; background: var(--cyan); color: #04110f; font-size: 14px; font-weight: 800; cursor: pointer; transition: background .18s ease, transform .18s ease; }
.search-button:hover { background: #67efd6; transform: translateY(-1px); }

/* Hero */
.profile-hero { height: 250px; position: relative; overflow: hidden; background: radial-gradient(circle at 15% 20%, rgba(255, 82, 199, .55), transparent 36%), radial-gradient(circle at 84% 26%, rgba(33, 232, 210, .52), transparent 34%), linear-gradient(118deg, #7b2cff 0%, #245dde 48%, #04a890 100%); }
.hero-shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(7, 8, 20, .54), rgba(7, 8, 20, .08) 72%), linear-gradient(0deg, rgba(5, 6, 10, .48), transparent 62%); }
.profile-content { position: relative; height: 100%; padding-bottom: 24px; display: flex; flex-direction: column; justify-content: flex-end; }
.profile-kicker { margin: 0 0 5px; color: #eef0f5; font-size: 12px; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; }
.profile-content h1 { margin: 0; font-size: clamp(42px, 4.6vw, 60px); line-height: .95; letter-spacing: -.055em; }
.profile-slogan { margin: 6px 0 8px; color: #f6f8fb; font-size: 17px; }
.profile-meta { margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 22px; list-style: none; color: #d1d7e0; font-size: 12px; }
.profile-meta li { display: flex; align-items: center; gap: 7px; }
.live-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 0 4px rgba(32, 227, 189, .18); }
.hero-actions { margin-top: 14px; display: flex; flex-wrap: wrap; gap: 9px; }
.hero-button { min-height: 44px; padding: 0 14px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 1px solid rgba(255, 255, 255, .32); border-radius: 8px; background: rgba(8, 11, 23, .42); color: #fff; font-size: 12px; font-weight: 800; backdrop-filter: blur(12px); transition: transform .18s ease, background .18s ease, border-color .18s ease; }
.hero-button svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.hero-button-primary { border-color: #78f7df; background: #42e5c6; color: #061914; }
.hero-button-primary svg { fill: currentColor; stroke: none; }
.hero-button-explore { background: rgba(255, 255, 255, .13); }
.hero-button:hover { transform: translateY(-2px); border-color: rgba(255, 255, 255, .72); background: rgba(18, 22, 40, .76); }
.hero-button-primary:hover { border-color: #bafff2; background: #70f4da; }

/* Reusable section headers */
.gallery-section { padding-block: 50px 72px; }
.gallery-section + .gallery-section { border-top: 1px solid #151922; }
.section-toolbar, .compact-heading { margin-bottom: 22px; display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; }
.pdt-category-kicker { margin: 0 0 8px; display: flex; align-items: center; gap: 9px; color: #69ead4; font-size: 9px; font-weight: 800; letter-spacing: .11em; line-height: 1.3; text-transform: uppercase; }
.section-toolbar h2, .compact-heading h2, .faq-heading h2 { margin: 0; font-size: 29px; line-height: 1.12; letter-spacing: -.025em; }
.section-deck { margin: 7px 0 0; color: #858e9d; font-size: 13px; }
.section-deck span { color: #c5ccd7; }
.preview-instruction-mobile { display: none; }
.toolbar-actions { display: flex; align-items: center; gap: 18px; }
.device-tabs { height: 46px; padding: 4px; display: flex; border: 1px solid #292f3a; border-radius: 5px; background: #0e1117; }
.device-tabs button { min-width: 98px; border: 0; border-radius: 3px; background: transparent; color: #9099a8; font-size: 13px; font-weight: 750; cursor: pointer; }
.device-tabs button:hover { color: #fff; }
.device-tabs button.is-active { background: #292e38; color: #fff; }
.device-tabs button:disabled { cursor: wait; opacity: .72; }
.device-tabs button.is-active:disabled::after { content: ""; width: 10px; height: 10px; margin-left: 7px; display: inline-block; border: 2px solid rgba(255, 255, 255, .3); border-top-color: var(--cyan); border-radius: 50%; animation: tab-spin .7s linear infinite; }
@keyframes tab-spin { to { transform: rotate(360deg); } }
.view-link { color: #cbd1da; font-size: 13px; font-weight: 750; white-space: nowrap; }
.view-link:hover { color: var(--cyan); }
.pagination { margin-top: 30px; display: flex; align-items: center; justify-content: center; gap: 4px; }
.pagination a, .pagination span { min-width: 42px; height: 42px; padding-inline: 11px; display: inline-flex; align-items: center; justify-content: center; color: #8d96a4; font-size: 12px; font-weight: 750; }
.pagination a { border-radius: 4px; transition: color .16s ease, background .16s ease; }
.pagination a:hover, .pagination a:focus-visible { background: #1a1f28; color: #fff; }
.pagination a.is-current { background: #1a1f28; color: var(--cyan); }
.pagination-wide { gap: 6px; white-space: nowrap; }
.pagination-gap { color: #596270; }

/* Wallpaper cards */
.wall-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); grid-auto-rows: 4px; grid-auto-flow: dense; align-items: start; gap: 11px; }
.wall-card { min-width: 0; height: auto; align-self: start; overflow: hidden; border-radius: 12px; background: var(--panel); }
.wall-card[hidden] { display: none; }
.wall-card.wall-landscape { grid-column: span 2; aspect-ratio: 16 / 9; }
.wall-card.wall-portrait { grid-column: span 1; aspect-ratio: 9 / 16; }
.wall-card > a, .wall-visual { position: relative; display: block; width: 100%; height: 100%; }
.wall-visual { overflow: hidden; border: 1px solid #232936; border-radius: inherit; background: #11151d; transition: border-color .18s ease; }
.wall-visual > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .42s var(--ease), filter .42s var(--ease), opacity .15s ease; }
.wall-card:hover .wall-visual, .wall-card:focus-within .wall-visual { border-color: #687484; }
.wall-card:hover .wall-visual > img, .wall-card:focus-within .wall-visual > img { transform: scale(1.025); filter: saturate(1.06); }
.motion-badge { position: absolute; z-index: 2; top: 11px; right: 11px; padding: 5px 8px; display: flex; align-items: center; gap: 5px; border-radius: 3px; background: rgba(4, 6, 10, .68); color: #e4e8ed; font-size: 9px; font-weight: 850; letter-spacing: .05em; text-transform: uppercase; backdrop-filter: blur(8px); }
.motion-badge > span { width: 5px; height: 5px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 0 3px rgba(32, 227, 189, .15); }
.wall-meta { position: absolute; z-index: 2; inset: auto 0 0; padding: 90px 19px 18px; background: linear-gradient(180deg, transparent, rgba(4, 6, 10, .4) 30%, rgba(4, 6, 10, .95)); pointer-events: none; }
.wall-portrait .wall-meta { padding: 80px 14px 15px; }
.wall-category { margin: 0 0 4px; color: var(--cyan); font-size: 10px; font-weight: 850; letter-spacing: .08em; text-transform: uppercase; }
.wall-meta h3 { margin: 0 0 7px; overflow: hidden; color: #fff; font-size: 18px; line-height: 1.2; letter-spacing: -.02em; text-overflow: ellipsis; white-space: nowrap; text-shadow: 0 1px 12px rgba(0, 0, 0, .55); }
.wall-portrait .wall-meta h3 { font-size: 14px; white-space: normal; }
.wall-resolution { margin: 0; display: flex; align-items: center; gap: 7px; color: #bcc4cf; font-size: 10px; font-weight: 650; }
.wall-resolution svg { width: 15px; height: 15px; flex: 0 0 15px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.wall-grid[data-active-filter="mobile"], .wall-grid[data-active-filter="desktop"] { grid-auto-rows: auto; grid-auto-flow: row; gap: 13px; }
.wall-grid[data-active-filter="mobile"] { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.wall-grid[data-active-filter="desktop"] { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.wall-grid[data-active-filter="mobile"] .wall-card, .wall-grid[data-active-filter="desktop"] .wall-card { grid-column: auto; grid-row: auto; }
.wall-grid[data-active-filter="mobile"] .wall-card { aspect-ratio: 9 / 16; }
.wall-grid[data-active-filter="desktop"] .wall-card { aspect-ratio: 16 / 9; }
.gallery-section.is-loading .wall-grid, .gallery-section.is-loading [data-pagination-container] { opacity: .48; pointer-events: none; }
.gallery-status { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.wall-grid.is-empty { display: block; }
.empty-state { min-height: 220px; padding: 42px 24px; display: grid; place-content: center; justify-items: center; border: 1px dashed #2d3440; border-radius: 12px; background: linear-gradient(135deg, rgba(32, 227, 189, .04), rgba(126, 80, 255, .04)); text-align: center; }
.empty-state strong { font-size: 18px; }
.empty-state p { max-width: 440px; margin: 8px 0 0; color: #858e9d; font-size: 13px; }

/* Categories, journal, FAQ */
.compact-section { padding-block: 64px 78px; border-top: 1px solid #151922; }
.category-list { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 9px; }
#categories .category-list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.category-list > a { min-height: 72px; padding: 9px 14px; display: grid; grid-template-columns: 48px 1fr auto; align-items: center; gap: 12px; border: 1px solid #202630; background: #12151c; transition: background .18s ease, border-color .18s ease, transform .18s ease; }
.category-list > a:hover { border-color: #384150; background: #191e27; transform: translateY(-2px); }
.category-list strong { overflow: hidden; font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.category-list small { color: #7d8796; font-size: 11px; }
.category-icon { width: 48px; height: 48px; display: grid; place-items: center; color: #08110f; }
.category-icon svg { width: 22px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.category-icon img { width: 100%; height: 100%; object-fit: cover; }
.category-icon-1 { background: #55e3cb; } .category-icon-2 { background: #ff6b68; } .category-icon-3 { background: #9a84ff; } .category-icon-4 { background: #f080d8; }
.category-icon-5 { background: #ff9c5b; } .category-icon-6 { background: #98db75; } .category-icon-7 { background: #6ca8ff; } .category-icon-8 { background: #c880ee; }

/* Catalog and search pages */
.profile-page-hero { height: auto; min-height: 250px; border-bottom: 1px solid #222936; }
.profile-page-hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(7, 8, 20, .46), rgba(7, 8, 20, .06) 72%), linear-gradient(0deg, rgba(5, 6, 10, .32), transparent 62%); pointer-events: none; }
.profile-page-content { position: relative; z-index: 1; min-height: 250px; padding-block: 18px 24px; display: flex; flex-direction: column; justify-content: flex-start; }
.breadcrumbs { margin: 0 0 18px; display: flex; flex-wrap: wrap; gap: 9px; color: #c1c8d3; font-size: 11px; line-height: 1.4; }
.breadcrumbs a:hover { color: var(--cyan); }
.profile-page-content h1 { max-width: 900px; margin: 0; font-size: clamp(36px, 4.5vw, 56px); line-height: .98; letter-spacing: -.05em; }
.profile-page-content > p:not(.pdt-category-kicker) { max-width: 720px; margin: 12px 0 0; color: #e0e4eb; font-size: clamp(13px, 1.3vw, 16px); line-height: 1.55; }
.intro-meta { margin-top: 14px; color: #c0c8d4; font-size: 11px; font-weight: 750; letter-spacing: .05em; text-transform: uppercase; }
.tag-section { padding-block: 62px 72px; border-top: 1px solid #151922; }
.tag-cloud { display: flex; flex-wrap: wrap; gap: 9px; }
.tag-cloud a { min-height: 42px; padding: 0 15px; display: inline-flex; align-items: center; gap: 9px; border: 1px solid #29313d; border-radius: 999px; background: #12161d; color: #c8d0db; font-size: 12px; font-weight: 700; transition: color .16s ease, border-color .16s ease, background .16s ease, transform .16s ease; }
.tag-cloud a:hover, .tag-cloud a:focus-visible { border-color: rgba(32, 227, 189, .65); background: rgba(32, 227, 189, .08); color: #fff; transform: translateY(-1px); }
.tag-cloud small { color: #758091; font-size: 9px; font-variant-numeric: tabular-nums; }
.search-page-heading { max-width: 740px; }
.search-page-heading .section-deck { color: #e0e4eb; }
.page-search-form { width: min(900px, 100%); margin-top: 16px; }
.page-search-form > label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); }
.page-search-form .search-field { min-height: 54px; border-color: rgba(255, 255, 255, .34); background: rgba(8, 11, 23, .52); backdrop-filter: blur(12px); }
.page-search-form .search-field input { width: 100%; font-size: 16px; }
.page-search-form .search-field button { min-width: 122px; }
.related-searches-section { padding-block: 20px 22px; border-bottom: 1px solid #1d232d; background: #0b0e13; }
.related-searches { max-width: none; margin: 0 auto; }
.related-searches h2 { margin: 0 0 10px; color: #8e98a7; font-size: 11px; letter-spacing: .12em; text-transform: uppercase; }
.journal-section { padding-block: 66px 76px; border-block: 1px solid #1b2029; background: #0c0f14; }
.journal-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.journal-grid article { min-width: 0; border: 1px solid #232a35; background: #141820; }
.journal-grid a { height: 100%; display: grid; grid-template-columns: 38% 1fr; }
.journal-grid img { width: 100%; height: 100%; min-height: 180px; object-fit: cover; }
.journal-grid article > a > div { min-width: 0; padding: 18px; }
.journal-grid p { margin: 0 0 9px; color: #7e8796; font-size: 10px; font-weight: 750; letter-spacing: .08em; text-transform: uppercase; }
.journal-grid h3 { margin: 0 0 18px; display: -webkit-box; overflow: hidden; font-size: 15px; line-height: 1.35; -webkit-box-orient: vertical; -webkit-line-clamp: 3; }
.journal-grid article > a > div > span { color: #b5bdc9; font-size: 11px; font-weight: 700; }
.journal-grid a:hover span { color: var(--cyan); }
.faq-section { padding-block: 78px 90px; display: grid; grid-template-columns: .72fr 1.28fr; gap: 7vw; }
.faq-heading > p:last-child { max-width: 330px; color: #828c9a; }
.faq-list { border-top: 1px solid var(--line); }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list summary { min-height: 70px; display: flex; align-items: center; justify-content: space-between; gap: 20px; list-style: none; cursor: pointer; font-size: 14px; font-weight: 750; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary span { position: relative; width: 16px; height: 16px; flex: 0 0 16px; }
.faq-list summary span::before, .faq-list summary span::after { content: ""; position: absolute; top: 7px; right: 1px; left: 1px; height: 1px; background: #aeb6c2; }
.faq-list summary span::after { transform: rotate(90deg); transition: transform .2s ease; }
.faq-list details[open] summary span::after { transform: none; }
.faq-list details p { max-width: 760px; margin: -2px 38px 22px 0; color: #8b95a4; font-size: 13px; }

/* Footer */
.footer { border-top: 1px solid #2a2f38; background: #171a20; }
.footer-grid { padding-block: 62px; display: grid; grid-template-columns: 1.4fr repeat(4, .65fr); gap: 54px; }
.footer-brand .brand img { width: 210px; }
.footer-brand > p { max-width: 390px; margin: 15px 0 0; color: #919aa9; font-size: 13px; }
.link-column { display: grid; align-content: start; gap: 9px; }
.link-column h3 { margin: 0 0 8px; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; }
.link-column a { color: #a0a9b7; font-size: 12px; }
.link-column a:hover { color: #fff; }
.footer-bottom { padding-block: 16px; display: flex; justify-content: space-between; border-top: 1px solid #2a3039; color: #747e8d; font-size: 11px; }

/* Search dialog */
.search-panel { position: fixed; inset: 0; z-index: 200; padding-top: 11vh; display: grid; place-items: start center; }
.search-panel[hidden] { display: none; }
.search-backdrop { position: absolute; inset: 0; border: 0; background: rgba(0, 0, 0, .8); backdrop-filter: blur(8px); cursor: pointer; }
.search-dialog { position: relative; width: min(720px, calc(100% - 30px)); padding: 25px; border: 1px solid #323945; border-radius: 13px; background: #151920; box-shadow: 0 30px 90px rgba(0, 0, 0, .62); }
.search-top { display: flex; align-items: center; justify-content: space-between; }
.search-top h2 { margin: 0; font-size: 23px; }
.search-dialog label { margin: 21px 0 7px; display: block; color: #a0a9b6; font-size: 12px; }
.search-field { min-height: 56px; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 11px; padding-left: 15px; border: 1px solid #303744; background: #090b10; }
.search-field:focus-within { border-color: var(--cyan); }
.search-field > svg { width: 20px; fill: none; stroke: #9ca5b3; stroke-width: 1.8; }
.search-field input { min-width: 0; border: 0; outline: 0; background: transparent; color: #fff; font-size: 15px; }
.search-field button { align-self: stretch; padding-inline: 20px; border: 0; background: var(--cyan); color: #04110f; font-size: 12px; font-weight: 800; cursor: pointer; }
.popular-searches { margin-top: 20px; padding-top: 18px; border-top: 1px solid #2b313c; }
.popular-searches h3 { margin: 0 0 11px; color: #aab2bf; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; }
.search-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.search-chips a { min-height: 42px; padding: 0 13px; display: inline-flex; align-items: center; border: 1px solid #343b48; border-radius: 999px; background: #1d222b; color: #d5dae3; font-size: 12px; }
.search-chips a:hover, .search-chips a:focus-visible { border-color: var(--cyan); background: rgba(32, 227, 189, .1); color: #fff; }

@media (max-width: 1180px) {
  :root { --shell: min(100% - 36px, 1120px); }
  .wall-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .wall-grid[data-active-filter="mobile"] { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .main-nav > a, .nav-link { padding-inline: 8px; font-size: 12px; }
  .search-button { min-width: 108px; }
}

@media (max-width: 1023px) {
  body { padding-top: 58px; }
  html { scroll-padding-top: 70px; }
  .topbar { height: 58px; padding-inline: max(12px, calc((100vw - 980px) / 2)); grid-template-columns: auto auto 1fr; column-gap: 0; }
  .nav-toggle { grid-column: 1; display: grid; }
  .topbar > .brand { grid-column: 2; margin-left: 1px; }
  .topbar > .brand img { width: 145px; }
  .topbar > .search-button { grid-column: 3; justify-self: end; }
  .main-nav { position: absolute; top: calc(100% + 7px); left: max(8px, calc((100vw - 980px) / 2)); width: min(310px, calc(100vw - 16px)); height: auto; max-height: calc(100vh - 76px); padding: 8px; display: flex; flex-direction: column; align-items: stretch; gap: 2px; overflow-y: auto; border: 1px solid #343a47; border-radius: 11px; background: rgba(23, 26, 32, .99); box-shadow: 0 22px 55px rgba(0, 0, 0, .5); opacity: 0; visibility: hidden; transform: translateY(-8px) scale(.98); transform-origin: top left; pointer-events: none; transition: opacity .18s ease, transform .18s ease, visibility .18s; }
  .main-nav.is-open { opacity: 1; visibility: visible; transform: none; pointer-events: auto; }
  .main-nav > a, .nav-link { width: 100%; min-height: 46px; padding: 0 14px; justify-content: space-between; border-radius: 7px; font-size: 14px; }
  .main-nav > a.is-current::after { display: none; }
  .nav-item { display: block; }
  .nav-item:hover > .nav-submenu { opacity: 0; visibility: hidden; pointer-events: none; }
  .nav-submenu { position: static; display: none; width: auto; min-width: 0; margin: 3px 0 7px 12px; padding: 0 0 0 8px; border: 0; border-left: 1px solid #3b4350; border-radius: 0; background: transparent; box-shadow: none; opacity: 1; visibility: visible; transform: none; pointer-events: auto; }
  .nav-item.is-open > .nav-submenu { display: block; opacity: 1; visibility: visible; pointer-events: auto; }
  .nav-submenu a { min-height: 42px; }
  .footer-grid { grid-template-columns: 1.3fr repeat(2, 1fr); }
  .footer-brand { grid-column: 1 / -1; }
  #categories .category-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 700px) {
  :root { --shell: calc(100% - 22px); }
  .topbar { padding-inline: 7px; }
  .topbar > .brand img { width: 128px; }
  .search-button { width: 44px; min-width: 44px; padding: 0; }
  .search-button span { display: none; }
  .profile-hero { background: radial-gradient(circle at 18% 18%, rgba(255, 75, 196, .58), transparent 42%), radial-gradient(circle at 85% 36%, rgba(24, 232, 203, .5), transparent 42%), linear-gradient(125deg, #7128ef, #205bd0 52%, #048a7c); }
  .hero-shade { background: linear-gradient(90deg, rgba(7, 8, 20, .48), rgba(7, 8, 20, .08) 72%), linear-gradient(0deg, rgba(5, 6, 10, .42), transparent 64%); }
  .profile-hero { height: 230px; }
  .profile-content { padding-bottom: 16px; }
  .profile-kicker { font-size: 8px; }
  .profile-content h1 { font-size: 32px; }
  .profile-slogan { margin-block: 5px 8px; font-size: 12px; }
  .profile-meta { gap: 10px; font-size: 8px; }
  .hero-actions { margin-top: 11px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; }
  .hero-button { min-width: 0; padding-inline: 5px; font-size: 9px; white-space: nowrap; }
  .hero-button svg { width: 15px; height: 15px; }
  .gallery-section { padding-block: 36px 52px; }
  .section-toolbar, .compact-heading { align-items: flex-start; flex-direction: column; gap: 14px; }
  .section-toolbar h2, .compact-heading h2, .faq-heading h2 { font-size: 22px; }
  .section-deck { font-size: 10px; }
  .preview-instruction-desktop { display: none; }
  .preview-instruction-mobile { display: inline; }
  .toolbar-actions { width: 100%; justify-content: space-between; }
  .device-tabs { flex: 1; }
  .device-tabs button { min-width: 0; flex: 1; }
  .wall-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .wall-card.wall-landscape { grid-column: span 2; }
  .wall-grid[data-active-filter="mobile"] { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .wall-grid[data-active-filter="desktop"] { grid-template-columns: 1fr; gap: 9px; }
  .wall-meta { padding: 50px 10px 10px; }
  .wall-portrait .wall-meta { padding: 50px 9px 9px; }
  .wall-category { font-size: 7px; }
  .wall-meta h3, .wall-portrait .wall-meta h3 { margin-bottom: 5px; font-size: 11px; }
  .wall-resolution { gap: 5px; font-size: 8px; }
  .wall-resolution svg { width: 12px; height: 12px; flex-basis: 12px; }
  .motion-badge { top: 7px; right: 7px; padding: 4px 6px; font-size: 7px; }
  .pagination { justify-content: flex-start; overflow-x: auto; scrollbar-width: none; }
  .pagination::-webkit-scrollbar { display: none; }
  .pagination a, .pagination span { min-width: 40px; height: 40px; padding-inline: 10px; }
  .compact-section { padding-block: 48px 58px; }
  .category-list { grid-template-columns: 1fr; }
  #categories .category-list { grid-template-columns: 1fr; }
  .profile-page-hero { height: auto; min-height: 230px; }
  .profile-page-content { min-height: 230px; padding-block: 14px 20px; }
  .pdt-category-kicker { margin-bottom: 7px; font-size: 8px; }
  .breadcrumbs { margin-bottom: 14px; }
  .profile-page-content h1 { font-size: 34px; }
  .profile-page-content > p:not(.pdt-category-kicker) { margin-top: 10px; font-size: 13px; }
  .tag-section { padding-block: 48px 56px; }
  .tag-cloud { gap: 7px; }
  .tag-cloud a { min-height: 39px; padding-inline: 12px; font-size: 11px; }
  .page-search-form { margin-top: 14px; }
  .page-search-form .search-field button { min-width: 0; }
  .related-searches-section { padding-block: 17px 19px; }
  .journal-section { padding-block: 50px 58px; }
  .journal-grid { grid-template-columns: 1fr; }
  .journal-grid a { grid-template-columns: 120px 1fr; }
  .journal-grid img { min-height: 135px; }
  .faq-section { padding-block: 58px 68px; grid-template-columns: 1fr; gap: 28px; }
  .faq-list summary { min-height: 64px; font-size: 13px; }
  .footer-grid { padding-block: 48px; grid-template-columns: 1fr 1fr; gap: 34px; }
  .footer-brand { grid-column: 1 / -1; }
  .footer-bottom { flex-direction: column; gap: 3px; }
  .search-panel { padding-top: 6vh; }
  .search-dialog { padding: 19px; }
  .search-field { grid-template-columns: auto 1fr; }
  .search-field button { grid-column: 1 / -1; min-height: 44px; }
}

@media (hover: none), (pointer: coarse) {
  .wall-card:hover .wall-visual > img { transform: none; filter: none; }
}

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