:root {
    color-scheme: light;
    --canvas: #f4f6f7;
    --surface: #fbfcfc;
    --surface-strong: #ffffff;
    --surface-tint: #e9f2ef;
    --ink: #17212b;
    --ink-soft: #344350;
    --muted: #687683;
    --line: #dce3e7;
    --line-strong: #cbd5da;
    --accent: #176b5b;
    --accent-deep: #104f44;
    --accent-soft: rgba(23, 107, 91, .11);
    --shadow: 0 24px 70px rgba(59, 82, 91, .12);
    --radius: 16px;
    --header-height: 64px;
    --header-top: 14px;
    --header-offset: calc(var(--header-height) + var(--header-top) + 16px);
    font-family: "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
    font-synthesis: none;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-offset) + 18px); }
body { margin: 0; background: var(--canvas); color: var(--ink); -webkit-font-smoothing: antialiased; }
body.has-floating-header { padding-top: var(--header-offset); }
body, button, input { font-family: inherit; }
body.menu-open { overflow: hidden; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button:focus-visible, a:focus-visible, input:focus-visible { outline: 3px solid rgba(23, 107, 91, .28); outline-offset: 3px; }
.site-container { width: min(1420px, calc(100% - 64px)); margin-inline: auto; }
.site-header { position: fixed; z-index: 50; top: var(--header-top); right: 0; left: 0; height: var(--header-height); pointer-events: none; }
.site-header .header-inner { width: min(1320px, calc(100% - 64px)); height: 100%; display: grid; grid-template-columns: minmax(180px, 1fr) auto minmax(60px, 1fr); align-items: center; gap: 24px; padding: 0 10px 0 18px; border: 1px solid rgba(255, 255, 255, .84); border-radius: 18px; background: rgba(252, 253, 253, .94); box-shadow: 0 8px 28px rgba(38, 53, 60, .1), 0 1px 2px rgba(38, 53, 60, .06); pointer-events: auto; transition: border-color .25s ease, background .25s ease, box-shadow .25s ease; }
@supports ((-webkit-backdrop-filter: blur(24px)) or (backdrop-filter: blur(24px))) {
    .site-header .header-inner { background: rgba(250, 252, 252, .78); -webkit-backdrop-filter: saturate(180%) blur(24px); backdrop-filter: saturate(180%) blur(24px); }
}
.site-header.is-scrolled .header-inner { border-color: rgba(255, 255, 255, .94); background: rgba(252, 253, 253, .92); box-shadow: 0 13px 38px rgba(38, 53, 60, .15), 0 1px 2px rgba(38, 53, 60, .06); }
.site-brand { display: inline-flex; align-items: center; justify-self: start; gap: 10px; min-width: 0; }
.site-brand > img { width: auto; max-width: 170px; height: 36px; object-fit: contain; }
.brand-symbol { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 11px; background: linear-gradient(145deg, #1b292f, #10191d); color: #fff; font-size: 18px; font-weight: 850; letter-spacing: -.04em; box-shadow: inset 0 1px 0 rgba(255,255,255,.16), 0 4px 11px rgba(20,31,36,.14); }
.brand-copy strong, .brand-copy small { display: block; }
.brand-copy strong { overflow: hidden; color: #202a2e; font-size: 17px; letter-spacing: .08em; text-overflow: ellipsis; white-space: nowrap; }
.brand-copy small { margin-top: 1px; color: #7d898e; font-size: 7px; font-weight: 700; letter-spacing: .18em; }
.desktop-nav { display: flex; align-items: center; justify-self: center; gap: 4px; min-width: 0; padding: 3px; white-space: nowrap; }
.desktop-nav a { position: relative; min-height: 36px; display: inline-flex; align-items: center; justify-content: center; padding: 0 11px; border-radius: 10px; color: #3d494e; font-size: 13px; font-weight: 620; transition: background .2s ease, color .2s ease, box-shadow .2s ease, transform .2s ease; }
.desktop-nav a:hover, .desktop-nav a.is-active { background: rgba(21, 34, 39, .06); color: #11191d; }
.desktop-nav a:active { transform: scale(.97); }
.desktop-nav .nav-rules-link { min-height: 36px; gap: 6px; margin-left: 4px; padding: 0 12px; border: 1px solid rgba(13, 34, 30, .06); border-radius: 11px; background: linear-gradient(145deg, #203d37, #122a25); color: #fff; font-size: 13px; font-weight: 720; box-shadow: inset 0 1px 0 rgba(255,255,255,.14), 0 5px 13px rgba(16, 50, 43, .17); transition: background .2s, box-shadow .2s, transform .2s; }
.desktop-nav .nav-rules-link::after { display: none; }
.desktop-nav .nav-rules-link i { color: #bfe8da; font-size: 16px; }
.desktop-nav .nav-rules-link:hover, .desktop-nav .nav-rules-link.is-active { background: linear-gradient(145deg, #285047, #17352f); color: #fff; box-shadow: inset 0 1px 0 rgba(255,255,255,.16), 0 7px 17px rgba(16, 50, 43, .22); transform: translateY(-1px); }
.desktop-nav .nav-rules-link:focus-visible { outline: 3px solid rgba(23, 107, 91, .2); outline-offset: 2px; }
.header-actions { display: flex; align-items: center; justify-self: end; gap: 6px; }
.header-search, .menu-toggle { width: 40px; height: 40px; display: grid; place-items: center; border: 1px solid rgba(33, 50, 56, .09); border-radius: 12px; background: rgba(255, 255, 255, .64); color: #202b2f; font-size: 18px; cursor: pointer; transition: border-color .2s, background .2s, box-shadow .2s, transform .2s; }
.header-search:hover, .menu-toggle:hover { border-color: rgba(33, 50, 56, .15); background: rgba(255, 255, 255, .94); box-shadow: 0 5px 14px rgba(38, 53, 60, .09); }
.header-search:active, .menu-toggle:active { transform: scale(.95); }
.menu-toggle { display: none; }
.mobile-nav { display: none; }

.sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; }
.button { min-height: 46px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 0 22px; border: 1px solid transparent; border-radius: 12px; font-size: 14px; font-weight: 760; white-space: nowrap; cursor: pointer; transition: transform .2s, box-shadow .2s, background .2s; }
.button:active { transform: translateY(1px); }
.button.primary { background: var(--accent-deep); color: #fff; box-shadow: 0 13px 30px rgba(16, 79, 68, .19); }
.button.primary:hover { background: var(--accent); box-shadow: 0 16px 36px rgba(16, 79, 68, .24); }
.button.secondary { border-color: var(--line-strong); background: rgba(255, 255, 255, .72); color: var(--ink); }
.button.secondary:hover { border-color: var(--accent); background: #fff; }
.cover-fallback { position: absolute; inset: 0; display: grid; place-items: center; align-content: center; gap: 10px; background: linear-gradient(145deg, #e7eeec, #f7f9f8); color: #82918e; }
.cover-fallback i { font-size: 42px; }
.cover-fallback small { font-size: 9px; font-weight: 800; letter-spacing: .16em; }
img + .cover-fallback { z-index: -1; }
.is-broken img { display: none !important; }
.is-broken .cover-fallback { z-index: 0; }

.home-hero { overflow: hidden; padding: 20px 0 32px; background: #f4f6f7; }
.hero-grid { position: relative; min-height: 592px; display: grid; grid-template-columns: minmax(360px, .78fr) minmax(0, 1.22fr); align-items: center; gap: clamp(38px, 4vw, 66px); overflow: hidden; padding: clamp(38px, 4vw, 58px); border: 1px solid rgba(12, 43, 37, .18); border-radius: 28px; background: linear-gradient(135deg, #102f2a 0%, #16443b 72%, #1a5045 100%); box-shadow: 0 28px 80px rgba(31, 52, 49, .16); isolation: isolate; }
.hero-grid::before { position: absolute; z-index: -1; top: 12px; right: 12px; bottom: 12px; left: 42%; border: 1px solid rgba(255,255,255,.65); border-radius: 22px; background: linear-gradient(145deg, rgba(249,252,251,.98), rgba(230,238,235,.98)); content: ""; box-shadow: inset 0 1px 0 rgba(255,255,255,.8); }
.hero-grid::after { position: absolute; z-index: -1; top: -210px; left: -180px; width: 520px; height: 520px; border: 1px solid rgba(208, 238, 226, .09); border-radius: 50%; content: ""; box-shadow: 0 0 0 64px rgba(208, 238, 226, .025), 0 0 0 128px rgba(208, 238, 226, .018); }
.hero-copy { position: relative; z-index: 1; max-width: 500px; padding-right: 6px; }
.hero-kicker { display: flex; align-items: center; gap: 10px; margin: 0 0 19px; color: #bfe8da; font-size: 11px; font-weight: 780; letter-spacing: .13em; }
.hero-kicker::before { width: 24px; height: 1px; background: #d3b878; content: ""; }
.hero-copy h1 { max-width: 8.5em; margin: 0; color: #fff; font-size: clamp(50px, 4.3vw, 66px); font-weight: 790; line-height: 1.08; letter-spacing: -.055em; }
.hero-copy h1 span { color: #bfe8da; }
.hero-copy > .hero-description { max-width: 30em; margin: 22px 0 0; color: #c7d9d4; font-size: 14px; line-height: 1.85; }
.hero-search { height: 58px; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 11px; margin-top: 29px; padding-left: 17px; border: 1px solid rgba(255,255,255,.58); border-radius: 15px; background: rgba(255,255,255,.96); box-shadow: 0 16px 36px rgba(2, 20, 16, .2); transition: border-color .2s, box-shadow .2s; }
.hero-search:focus-within { border-color: #bfe8da; box-shadow: 0 0 0 4px rgba(191,232,218,.13), 0 18px 40px rgba(2, 20, 16, .22); }
.hero-search > i { color: var(--accent); font-size: 19px; }
.hero-search input { min-width: 0; height: 100%; border: 0; outline: 0; background: transparent; color: var(--ink); font-size: 13px; }
.hero-search input::placeholder { color: #7a888e; }
.hero-search button { align-self: stretch; margin: 5px; padding: 0 18px; border: 0; border-radius: 11px; background: linear-gradient(145deg, #1d5147, #123b33); color: #fff; font-size: 12px; font-weight: 760; cursor: pointer; white-space: nowrap; transition: background .2s, transform .2s, box-shadow .2s; }
.hero-search button:hover { background: linear-gradient(145deg, #28675b, #174a40); box-shadow: 0 6px 15px rgba(17,65,55,.2); }
.hero-search button:active { transform: scale(.98); }
.hero-proof { display: flex; flex-wrap: wrap; gap: 9px 17px; margin-top: 21px; }
.hero-proof span { display: inline-flex; align-items: center; gap: 6px; color: rgba(226,239,235,.68); font-size: 10px; font-weight: 650; }
.hero-proof i { color: #d3b878; font-size: 14px; }
.hero-gallery { position: relative; z-index: 1; min-width: 0; height: 472px; display: grid; grid-template-columns: minmax(0, 1.58fr) minmax(190px, .72fr); gap: 14px; }
.hero-gallery:not(:has(.hero-supporting)) .hero-feature { grid-column: 1 / -1; }
.hero-feature, .hero-supporting article, .hero-placeholder { min-width: 0; overflow: hidden; border: 1px solid rgba(41, 72, 66, .14); border-radius: 19px; background: rgba(255,255,255,.97); }
.hero-feature { display: grid; grid-template-rows: minmax(0, 1fr) auto; box-shadow: 0 23px 52px rgba(35, 59, 54, .18); transition: transform .3s cubic-bezier(.16,1,.3,1), box-shadow .3s; }
.hero-feature:hover { transform: translateY(-3px); box-shadow: 0 29px 62px rgba(35, 59, 54, .23); }
.hero-feature-cover, .hero-supporting-cover { position: relative; min-height: 0; display: block; overflow: hidden; background: #e4ebe9; }
.hero-feature-cover img, .hero-supporting-cover img { position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; object-fit: fill; transition: transform .6s cubic-bezier(.16, 1, .3, 1); }
.hero-feature-cover:hover img, .hero-supporting-cover:hover img { transform: scale(1.025); }
.hero-feature-label { position: absolute; z-index: 2; top: 15px; left: 15px; display: inline-flex; align-items: center; gap: 6px; padding: 7px 10px; border: 1px solid rgba(255,255,255,.6); border-radius: 999px; background: rgba(17, 48, 42, .84); color: #fff; font-size: 9px; font-weight: 760; letter-spacing: .04em; box-shadow: 0 6px 18px rgba(7,24,20,.18); backdrop-filter: blur(12px); }
.hero-feature-label i { color: #e1c98f; font-size: 12px; }
.hero-feature-copy { position: relative; min-height: 122px; padding: 18px 62px 20px 20px; }
.hero-feature-meta { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.hero-feature-meta > span { color: #94a09d; font-family: "Cascadia Code", Consolas, monospace; font-size: 7px; letter-spacing: .12em; }
.hero-feature-copy h2 { display: -webkit-box; overflow: hidden; margin: 8px 0 0; color: #20322e; font-size: 19px; line-height: 1.42; letter-spacing: -.02em; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.hero-feature-go { position: absolute; right: 18px; bottom: 20px; width: 34px; height: 34px; display: grid; place-items: center; border: 1px solid #d8e2df; border-radius: 50%; background: #f1f6f4; color: var(--accent-deep); font-size: 16px; transition: background .2s, color .2s, transform .2s; }
.hero-feature-go:hover { background: var(--accent-deep); color: #fff; transform: rotate(5deg); }
.hero-supporting { display: grid; grid-template-rows: repeat(2, minmax(0, 1fr)); gap: 14px; }
.hero-supporting:has(article:only-child) { grid-template-rows: minmax(0, 1fr); }
.hero-supporting article { display: grid; grid-template-rows: minmax(0, 1fr) auto; transition: border-color .25s, transform .3s cubic-bezier(.16,1,.3,1), box-shadow .3s; }
.hero-supporting article:hover { border-color: rgba(23,107,91,.28); box-shadow: 0 13px 28px rgba(35,59,54,.13); transform: translateY(-2px); }
.hero-supporting-copy { position: relative; min-height: 82px; padding: 12px 38px 13px 14px; }
.hero-supporting-copy > span { color: var(--accent); font-size: 9px; font-weight: 760; }
.hero-supporting h3 { display: -webkit-box; overflow: hidden; margin: 5px 0 0; color: #2a3b37; font-size: 12px; line-height: 1.45; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.hero-supporting-copy > i { position: absolute; right: 13px; bottom: 14px; color: #82908c; font-size: 14px; }
.hero-placeholder { display: grid; grid-column: 1 / -1; place-items: center; align-content: center; gap: 14px; color: var(--accent-deep); }
.hero-placeholder i { font-size: 62px; }
.hero-placeholder span { color: var(--ink-soft); font-weight: 720; }

.catalog-overview { border-bottom: 1px solid var(--line); background: var(--surface); }
.catalog-overview-grid { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: stretch; gap: 28px; padding-block: 26px; }
.catalog-metrics { display: grid; grid-template-columns: repeat(2, 104px); border-right: 1px solid var(--line); }
.catalog-metrics div { display: grid; align-content: center; gap: 3px; }
.catalog-metrics strong { font-size: 27px; line-height: 1; letter-spacing: -.035em; }
.catalog-metrics span { color: var(--muted); font-size: 11px; }
.catalog-category-nav { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; }
.catalog-category-nav a { min-width: 0; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 6px 10px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface-strong); transition: border-color .2s, background .2s, transform .2s; }
.catalog-category-nav a:hover { border-color: rgba(23, 107, 91, .34); background: var(--surface-tint); transform: translateY(-2px); }
.catalog-category-nav span { overflow: hidden; font-size: 13px; font-weight: 720; text-overflow: ellipsis; white-space: nowrap; }
.catalog-category-nav strong { grid-row: 2; color: var(--muted); font-size: 15px; }
.catalog-category-nav i { grid-column: 2; grid-row: 1 / span 2; color: var(--accent); font-size: 17px; }

.section-heading { display: grid; gap: 10px; max-width: 720px; margin-bottom: 34px; }
.section-heading h2 { margin: 0; font-size: clamp(30px, 3vw, 45px); line-height: 1.2; letter-spacing: -.04em; }
.section-heading p { margin: 0; color: var(--muted); font-size: 15px; line-height: 1.7; }
.project-category { color: var(--accent); font-size: 11px; font-weight: 760; }
.project-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 34px 22px; }
.project-card { min-width: 0; display: flex; flex-direction: column; overflow: hidden; padding: 7px; border: 1px solid #dde4e6; border-radius: 16px; background: var(--surface-strong); box-shadow: 0 7px 20px rgba(45, 62, 69, .055); transition: border-color .25s, box-shadow .25s; }
.project-card:hover { border-color: #c9d6d3; box-shadow: 0 15px 34px rgba(39, 61, 57, .11); }
.project-cover { position: relative; aspect-ratio: 3 / 2; display: block; overflow: hidden; border-radius: 11px; background: #e7edeb; }
.project-cover img { position: relative; z-index: 1; width: 100%; height: 100%; object-fit: fill; transition: transform .55s cubic-bezier(.16, 1, .3, 1); }
.project-cover:hover img { transform: scale(1.03); }
.project-card-body { min-width: 0; display: flex; flex: 1; flex-direction: column; padding: 14px 9px 9px; }
.project-card h3 { overflow: hidden; margin: 7px 0 0; font-size: 17px; line-height: 1.45; letter-spacing: -.018em; text-overflow: ellipsis; white-space: nowrap; }
.project-card h3 a { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.project-card-summary { min-width: 0; min-height: 40px; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 7px; margin-top: 12px; padding: 9px 10px; border: 1px solid #e6ebec; border-radius: 9px; background: linear-gradient(145deg, #f5f7f7, #f0f3f3); }
.project-card-summary > span { color: #829097; font-size: 9px; font-weight: 800; letter-spacing: .05em; white-space: nowrap; }
.project-card-summary > p { overflow: hidden; margin: 0; color: #68767d; font-size: 11px; line-height: 1.55; text-overflow: ellipsis; white-space: nowrap; }
.project-card-summary > strong { padding-left: 8px; border-left: 1px solid #d9e1e1; color: var(--accent-deep); font-size: 11px; white-space: nowrap; }
.front-empty { min-height: 340px; display: grid; place-items: center; align-content: center; gap: 10px; border: 1px dashed var(--line-strong); border-radius: var(--radius); text-align: center; }
.front-empty > i { color: var(--accent); font-size: 44px; }
.front-empty h3, .front-empty p { margin: 0; }
.front-empty p { color: var(--muted); }
.front-empty .button { margin-top: 12px; }
.latest-section { padding-block: 58px 88px; }
.home-section-heading { max-width: none; display: flex; align-items: flex-end; justify-content: space-between; gap: 30px; margin-bottom: 28px; }
.home-section-heading > div { display: grid; gap: 8px; }
.home-section-heading h2 { font-size: clamp(32px, 3vw, 42px); }
.home-section-heading > a { display: inline-flex; align-items: center; gap: 7px; padding-bottom: 4px; color: var(--accent-deep); font-size: 13px; font-weight: 760; white-space: nowrap; }
.home-section-heading > a i { font-size: 17px; transition: transform .2s; }
.home-section-heading > a:hover i { transform: translateX(3px); }
.home-project-grid { gap: 28px 20px; }
.home-project-grid .project-cover { aspect-ratio: 3 / 2; }
.home-project-grid .project-card h3 { font-size: 16px; }
.editor-picks { padding-block: 0 88px; }
.editor-pick-list { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.editor-pick-list a { min-width: 0; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 7px 12px; padding: 19px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface-strong); }
.editor-pick-list span { color: var(--accent); font-size: 10px; font-weight: 760; }
.editor-pick-list strong { overflow: hidden; font-size: 14px; line-height: 1.5; text-overflow: ellipsis; white-space: nowrap; }
.editor-pick-list i { grid-column: 2; grid-row: 1 / span 2; align-self: center; color: var(--accent); }
.services-section { padding-block: clamp(72px, 8vw, 112px); border-top: 1px solid var(--line); background: #eef3f2; }
.services-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px 44px; }
.services-grid article { display: grid; grid-template-columns: auto 1fr; gap: 18px; padding: 26px 0; border-bottom: 1px solid var(--line-strong); }
.services-grid i { color: var(--accent); font-size: 24px; }
.services-grid h3 { margin: 0 0 8px; font-size: 18px; }
.services-grid p { margin: 0; color: var(--muted); line-height: 1.7; }

.listing-hero { padding-block: 66px 58px; border-bottom: 1px solid var(--line); background: #eef3f2; }
.breadcrumb { display: flex; align-items: center; gap: 8px; margin-bottom: 28px; color: var(--muted); font-size: 12px; }
.breadcrumb i { font-size: 11px; }
.breadcrumb a:hover { color: var(--accent); }
.listing-hero h1 { margin: 0; font-size: clamp(42px, 5vw, 68px); letter-spacing: -.05em; }
.listing-hero > .site-container > p { max-width: 42em; margin: 16px 0 0; color: var(--muted); line-height: 1.8; }
.listing-search { max-width: 600px; margin-top: 32px; }
.listing-search > label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.listing-search > div { height: 52px; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 10px; padding-left: 16px; border: 1px solid var(--line-strong); border-radius: 12px; background: var(--surface-strong); }
.listing-search i { color: var(--muted); font-size: 19px; }
.listing-search input { min-width: 0; height: 100%; border: 0; outline: 0; background: transparent; color: var(--ink); }
.listing-search input::placeholder { color: #77838e; }
.listing-search button { align-self: stretch; padding: 0 22px; border: 0; border-radius: 0 11px 11px 0; background: var(--accent-deep); color: #fff; font-weight: 740; cursor: pointer; }
.listing-content { min-height: 500px; padding-block: 54px 112px; }
.listing-summary { display: flex; align-items: baseline; gap: 7px; margin-bottom: 28px; }
.listing-summary strong { font-size: 27px; }
.listing-summary span { color: var(--muted); font-size: 13px; }
.pagination { display: flex; justify-content: center; gap: 8px; margin-top: 62px; }
.pagination a { width: 42px; height: 42px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 10px; background: var(--surface-strong); font-size: 13px; font-weight: 700; }
.pagination a.is-current { border-color: var(--accent-deep); background: var(--accent-deep); color: #fff; }
.pagination.pagination-detailed { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 22px; padding: 16px 18px; border: 1px solid var(--line); border-radius: 16px; background: rgba(255,255,255,.72); box-shadow: 0 12px 30px rgba(44, 67, 62, .05); }
.pagination-summary { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 11px; white-space: nowrap; }
.pagination-summary span { display: inline-flex; align-items: baseline; gap: 4px; }
.pagination-summary strong { color: var(--ink); font-size: 13px; font-variant-numeric: tabular-nums; }
.pagination-summary i { width: 3px; height: 3px; border-radius: 50%; background: #aab8b4; }
.pagination-pages { display: flex; justify-content: center; gap: 8px; }
.pagination-position { justify-self: end; padding: 8px 11px; border: 1px solid var(--line); border-radius: 9px; background: #f3f6f5; color: var(--muted); font-size: 11px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.pagination-position strong { color: var(--accent-deep); font-size: 13px; }

.project-header { padding-block: 34px 50px; border-bottom: 1px solid var(--line); background: #eef3f2; }
.project-header .breadcrumb { margin-bottom: 34px; }
.project-intro-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(280px, 340px); align-items: end; gap: clamp(44px, 6vw, 86px); }
.project-intro-main { min-width: 0; max-width: 1020px; }
.project-meta-line { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; }
.project-meta-line a { color: var(--accent); font-size: 12px; font-weight: 780; }
.project-meta-line span { padding-left: 14px; border-left: 1px solid var(--line-strong); color: var(--muted); font-family: "Cascadia Code", Consolas, monospace; font-size: 10px; font-weight: 700; letter-spacing: .08em; }
.project-intro-main h1 { max-width: 18em; margin: 0; font-size: clamp(40px, 4.2vw, 62px); line-height: 1.13; letter-spacing: -.047em; }
.project-summary { max-width: 60em; margin: 20px 0 0; color: var(--muted); font-size: 16px; line-height: 1.8; }
.project-facts { min-width: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 18px; padding: 2px 0 3px 28px; border-left: 1px solid var(--line-strong); }
.project-fact { min-width: 0; }
.project-fact button, .project-fact a { width: 100%; min-width: 0; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 8px; padding: 0; border: 0; background: none; color: var(--ink); text-align: left; cursor: pointer; }
.project-fact span { grid-column: 1; color: var(--muted); font-size: 10px; }
.project-fact strong { grid-column: 1; overflow: hidden; font-size: 13px; line-height: 1.45; text-overflow: ellipsis; white-space: nowrap; }
.project-fact i { grid-column: 2; grid-row: 1 / span 2; align-self: center; color: var(--accent); font-size: 17px; }
.project-fact.is-price > span, .project-fact.is-price > strong { display: block; }
.project-fact.is-price > strong { margin-top: 4px; color: var(--accent-deep); font-size: 15px; }
.project-content-link { grid-column: 1 / -1; min-height: 44px; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 0 15px; border-radius: 12px; background: var(--accent-deep); color: #fff; font-size: 13px; font-weight: 750; transition: background .2s, transform .2s; }
.project-content-link:hover { background: var(--accent); }
.project-content-link:active { transform: translateY(1px); }
.contact-band { display: grid; grid-template-columns: minmax(300px, .65fr) minmax(0, 1.35fr); align-items: center; gap: 42px; margin-top: 38px; padding-top: 26px; border-top: 1px solid var(--line-strong); }
.contact-copy { display: grid; grid-template-columns: auto 1fr; align-items: start; gap: 16px; }
.contact-copy > i { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 13px; background: var(--accent-soft); color: var(--accent); font-size: 23px; }
.contact-copy h2 { margin: 0 0 6px; font-size: 20px; }
.contact-copy p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.7; }
.contact-panel { min-width: 0; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; }
.contact-actions { min-width: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 9px; }
.contact-actions button { min-width: 0; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-content: center; gap: 4px 10px; padding: 11px 12px; border: 1px solid var(--line-strong); border-radius: 12px; background: var(--surface-strong); color: var(--ink); text-align: left; cursor: pointer; transition: border-color .2s, background .2s, box-shadow .2s, transform .2s; }
.contact-actions button span { color: var(--muted); font-size: 10px; }
.contact-actions button strong { overflow: hidden; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.contact-actions button i { grid-column: 2; grid-row: 1 / span 2; align-self: center; color: var(--accent); font-size: 18px; }
.contact-actions button:hover { border-color: rgba(23, 107, 91, .38); background: #fbfdfc; box-shadow: 0 7px 18px rgba(45, 67, 62, .08); transform: translateY(-1px); }
.contact-qr-card { min-width: 228px; display: grid; grid-template-columns: 64px minmax(0, 1fr) auto; align-items: center; gap: 12px; margin: 0; padding: 8px 12px 8px 8px; border: 1px solid rgba(255,255,255,.12); border-radius: 14px; background: linear-gradient(135deg, #173e36, #0f2f29); color: #fff; box-shadow: 0 9px 24px rgba(16, 55, 47, .16); }
.contact-qr-frame { width: 64px; height: 64px; display: grid; place-items: center; overflow: hidden; padding: 4px; border-radius: 10px; background: #fff; box-shadow: inset 0 0 0 1px rgba(19, 57, 49, .08); }
.contact-qr { width: 100%; height: 100%; border-radius: 6px; object-fit: contain; }
.contact-qr-card figcaption { min-width: 0; }
.contact-qr-card figcaption span, .contact-qr-card figcaption strong, .contact-qr-card figcaption small { display: block; }
.contact-qr-card figcaption span { margin-bottom: 2px; color: #a9d9c9; font-size: 9px; font-weight: 760; letter-spacing: .06em; }
.contact-qr-card figcaption strong { overflow: hidden; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.contact-qr-card figcaption small { margin-top: 3px; color: #9fb7b0; font-size: 8px; white-space: nowrap; }
.contact-qr-card > i { color: #d9c187; font-size: 19px; }
.project-reading { background: var(--canvas); }
.article-layout { display: grid; grid-template-columns: minmax(0, 920px); justify-content: center; gap: 48px; padding-block: 52px 110px; }
.article-layout.has-toc { grid-template-columns: 230px minmax(0, 920px); align-items: start; }
.article-main { min-width: 0; }
.article-reading-head { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-bottom: 26px; padding-bottom: 14px; border-bottom: 1px solid var(--line-strong); }
.article-reading-head span { display: inline-flex; align-items: center; gap: 8px; color: var(--ink); font-size: 13px; font-weight: 760; }
.article-reading-head i { color: var(--accent); font-size: 18px; }
.article-reading-head small { color: var(--muted); font-size: 11px; }
.article-toc { position: sticky; top: 104px; max-height: calc(100vh - 130px); overflow: auto; padding: 0 0 0 18px; border-left: 1px solid var(--line-strong); }
.toc-toggle { width: 100%; display: flex; align-items: center; justify-content: space-between; padding: 0 0 14px; border: 0; background: none; color: var(--ink); font-weight: 760; cursor: pointer; }
.article-toc nav { display: grid; gap: 3px; }
.article-toc a { padding: 8px 10px; border-radius: 8px; color: var(--muted); font-size: 12px; line-height: 1.55; }
.article-toc a.is-sub { padding-left: 24px; font-size: 11px; }
.article-toc a.is-active { background: var(--accent-soft); color: var(--accent-deep); font-weight: 700; }
.article-content { min-width: 0; color: #2d3a45; font-size: 17px; line-height: 1.95; }
.article-content > :first-child { margin-top: 0; }
.article-content p { margin: 0 0 22px; }
.article-content h2 { position: relative; margin: 60px 0 24px; padding: 18px 0 14px; border-bottom: 1px solid var(--line-strong); color: var(--ink); font-size: 28px; line-height: 1.4; letter-spacing: -.025em; }
.article-content h2::before { position: absolute; top: 0; left: 0; width: 36px; height: 4px; border-radius: 4px; background: var(--accent); content: ""; }
.article-content h3 { margin: 40px 0 18px; padding-left: 15px; border-left: 3px solid var(--accent); color: var(--ink); font-size: 21px; line-height: 1.45; }
.article-content h4 { margin: 32px 0 15px; color: var(--ink); font-size: 18px; }
.article-content ul, .article-content ol { margin: 0 0 26px; padding-left: 1.35em; }
.article-content li { margin: 8px 0; padding-left: .3em; }
.article-content li::marker { color: var(--accent); }
.article-content img { width: auto; max-width: 100%; height: auto; margin: 30px auto; border-radius: var(--radius); box-shadow: 0 20px 52px rgba(59, 82, 91, .13); cursor: zoom-in; }
.article-gallery { margin: 30px 0 38px; padding: 15px; border: 1px solid var(--line); border-radius: var(--radius); background: rgba(255, 255, 255, .68); box-shadow: 0 18px 48px rgba(59, 82, 91, .08); }
.article-gallery-head { display: flex; align-items: center; gap: 8px; padding: 1px 2px 14px; }
.article-gallery-head i { color: var(--accent); font-size: 19px; }
.article-gallery-head strong { font-size: 14px; }
.article-gallery-head span { margin-left: auto; color: var(--muted); font-size: 11px; }
.article-gallery-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 9px; }
.article-gallery-item { position: relative; min-width: 0; aspect-ratio: 5 / 7; overflow: hidden; padding: 0; border: 1px solid var(--line); border-radius: 11px; background: #e8eeec; cursor: zoom-in; transition: border-color .22s, transform .22s, box-shadow .22s; }
.article-content .article-gallery-item img { width: 100%; height: 100%; margin: 0; border-radius: 10px; object-fit: cover; object-position: top; box-shadow: none; transition: transform .35s cubic-bezier(.16, 1, .3, 1); }
.article-gallery-item:hover { z-index: 1; border-color: rgba(23, 107, 91, .55); box-shadow: 0 12px 28px rgba(59, 82, 91, .16); transform: translateY(-2px); }
.article-gallery-item:hover img { transform: scale(1.025); }
.article-gallery.is-collapsed .article-gallery-item:nth-child(n+9) { display: none; }
.article-gallery-toggle { width: 100%; min-height: 42px; display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 11px; border: 1px solid var(--line); border-radius: 11px; background: var(--surface-strong); color: var(--accent-deep); font-size: 12px; font-weight: 760; cursor: pointer; transition: border-color .2s, background .2s; }
.article-gallery-toggle:hover { border-color: var(--accent); background: var(--surface-tint); }
.article-gallery-toggle i { font-size: 14px; }
.article-content figure { margin: 32px 0; }
.article-content figure img { margin-block: 0; }
.article-content figcaption { margin-top: 10px; color: var(--muted); font-size: 12px; text-align: center; }
.article-content blockquote { margin: 30px 0; padding: 20px 24px; border-left: 4px solid var(--accent); border-radius: 0 12px 12px 0; background: var(--surface-tint); color: var(--ink-soft); }
.article-content pre { overflow: auto; margin: 30px 0; padding: 23px; border: 1px solid #303e49; border-radius: var(--radius); background: #1b252d; color: #e8eff2; font-family: "Cascadia Code", Consolas, monospace; font-size: 14px; line-height: 1.75; }
.article-content code:not(pre code) { padding: 2px 6px; border-radius: 6px; background: var(--accent-soft); color: var(--accent-deep); font-family: "Cascadia Code", Consolas, monospace; font-size: .88em; }
.article-content table { width: 100%; margin: 30px 0; border-collapse: collapse; display: block; overflow-x: auto; }
.article-content th, .article-content td { min-width: 120px; padding: 13px 15px; border-bottom: 1px solid var(--line); text-align: left; }
.article-content th { background: #edf2f1; color: var(--ink); }
.article-empty { min-height: 320px; display: grid; place-items: center; align-content: center; gap: 12px; color: var(--muted); text-align: center; }
.article-empty i { color: var(--accent); font-size: 42px; }
.article-empty p { margin: 0; }
.related-section { border-top: 1px solid var(--line); }
.related-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.site-footer { padding-block: 48px; border-top: 1px solid var(--line); background: #eaf0ef; }
.footer-grid { display: grid; grid-template-columns: 1fr auto auto; align-items: end; gap: 50px; }
.footer-brand { font-size: 24px; font-weight: 800; letter-spacing: .08em; }
.footer-grid p { margin: 9px 0 0; color: var(--muted); font-size: 12px; line-height: 1.7; }
.footer-links { display: flex; gap: 24px; font-size: 13px; font-weight: 650; }
.footer-meta { text-align: right; }
.image-viewer { position: fixed; z-index: 80; inset: 0; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: clamp(14px, 2vw, 28px); padding: 40px; background: rgba(18, 27, 33, .94); opacity: 0; pointer-events: none; transition: opacity .25s; }
.image-viewer.is-open { opacity: 1; pointer-events: auto; }
.image-viewer figure { min-width: 0; display: grid; justify-items: center; gap: 12px; margin: 0; }
.image-viewer img { max-width: min(1400px, calc(100vw - 210px)); max-height: calc(100vh - 116px); border-radius: 12px; object-fit: contain; }
.image-viewer figcaption { display: flex; align-items: center; justify-content: center; gap: 12px; color: rgba(255, 255, 255, .7); font-size: 11px; }
.image-viewer figcaption span { color: #fff; font-family: "Cascadia Code", Consolas, monospace; font-weight: 750; }
.image-viewer-close, .image-viewer-nav { width: 46px; height: 46px; display: grid; place-items: center; border: 1px solid rgba(255, 255, 255, .25); background: rgba(255, 255, 255, .1); color: #fff; font-size: 22px; cursor: pointer; transition: border-color .2s, background .2s, transform .2s; }
.image-viewer-close:hover, .image-viewer-nav:hover { border-color: rgba(255, 255, 255, .55); background: rgba(255, 255, 255, .18); }
.image-viewer-close:active, .image-viewer-nav:active { transform: scale(.97); }
.image-viewer-close { position: absolute; top: 20px; right: 20px; border-radius: 12px; }
.image-viewer-nav { position: relative; border-radius: 50%; }
.image-viewer-nav[hidden] { display: none; }

.access-page { --access-bg: #07130f; --access-panel: rgba(9, 29, 23, .82); --access-text: #edf7f3; --access-muted: #a8bbb4; --access-accent: #9be4ca; --access-accent-strong: #c4f2e1; --access-line: rgba(201, 238, 225, .15); position: relative; min-height: 100dvh; overflow: hidden; background: var(--access-bg); color: var(--access-text); }
.access-atmosphere { position: fixed; inset: 0; overflow: hidden; background: radial-gradient(circle at 18% 16%, rgba(45, 145, 114, .22), transparent 30%), radial-gradient(circle at 84% 80%, rgba(31, 97, 77, .3), transparent 36%), linear-gradient(145deg, #07130f 0%, #0a1e18 50%, #0d2a20 100%); pointer-events: none; }
.access-atmosphere::before { position: absolute; inset: -45%; background: conic-gradient(from 210deg at 50% 50%, transparent 0 14%, rgba(117, 200, 171, .1) 20%, transparent 28% 51%, rgba(72, 146, 121, .12) 60%, transparent 70%); content: ""; }
.access-atmosphere::after { position: absolute; inset: 0; background: radial-gradient(circle at 50% 46%, transparent 0 26%, rgba(4, 13, 10, .15) 60%, rgba(3, 10, 8, .56) 100%); content: ""; }
.access-streams { position: absolute; inset: -30%; transform: rotate(-18deg); }
.access-streams span { position: absolute; left: -20%; width: 140%; height: 2px; background: repeating-linear-gradient(90deg, transparent 0 62px, rgba(157, 226, 201, .26) 62px 145px, transparent 145px 218px); opacity: .5; }
.access-streams span:nth-child(1) { top: 18%; }
.access-streams span:nth-child(2) { top: 31%; opacity: .26; }
.access-streams span:nth-child(3) { top: 44%; }
.access-streams span:nth-child(4) { top: 59%; opacity: .3; }
.access-streams span:nth-child(5) { top: 72%; }
.access-streams span:nth-child(6) { top: 85%; opacity: .24; }
.access-shell { position: relative; z-index: 1; min-height: 100dvh; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: clamp(30px, 5vw, 64px); }
.access-card { position: relative; width: min(100%, 480px); padding: 38px 40px 34px; border: 1px solid var(--access-line); border-radius: 20px; background: linear-gradient(155deg, rgba(14, 40, 32, .88), var(--access-panel)); box-shadow: inset 0 1px 0 rgba(237, 255, 249, .11), 0 30px 90px rgba(2, 12, 9, .4); backdrop-filter: blur(26px) saturate(125%); -webkit-backdrop-filter: blur(26px) saturate(125%); }
.access-card::before { position: absolute; inset: 1px; border: 1px solid rgba(237, 255, 249, .04); border-radius: 19px; content: ""; pointer-events: none; }
.access-brand { position: relative; width: max-content; max-width: 100%; display: flex; align-items: center; justify-content: center; gap: 11px; margin-inline: auto; color: var(--access-text); }
.access-brand > img { width: auto; max-width: 180px; height: 42px; object-fit: contain; }
.access-brand .brand-symbol { width: 38px; height: 38px; border-radius: 12px; background: var(--access-accent-strong); color: #0b261e; font-size: 19px; }
.access-brand .brand-copy strong { color: var(--access-text); font-size: 18px; }
.access-brand .brand-copy small { color: var(--access-muted); }
.access-intro { position: relative; margin: 34px 0 29px; text-align: center; }
.access-lock { width: 54px; height: 54px; display: grid; place-items: center; margin: 0 auto 20px; border: 1px solid rgba(155, 228, 202, .22); border-radius: 16px; background: rgba(155, 228, 202, .08); color: var(--access-accent); font-size: 25px; box-shadow: inset 0 1px 0 rgba(237, 255, 249, .08); }
.access-intro h1 { margin: 0; color: var(--access-text); font-size: 34px; line-height: 1.2; letter-spacing: -.038em; }
.access-note { max-width: 32em; margin: 13px auto 0; color: var(--access-muted); font-size: 14px; line-height: 1.7; }
.access-guide { margin-top: 20px; padding: 13px; border: 1px solid rgba(155, 228, 202, .17); border-radius: 14px; background: rgba(3, 15, 11, .3); box-shadow: inset 0 1px 0 rgba(237, 255, 249, .045); text-align: left; }
.access-guide-head { display: flex; align-items: center; gap: 8px; padding: 0 2px 11px; color: #dceae5; }
.access-guide-head i { color: var(--access-accent); font-size: 17px; }
.access-guide-head strong { font-size: 13px; font-weight: 750; }
.access-guide-head span { margin-left: auto; color: #829b92; font-size: 10px; }
.access-guide-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.access-guide-item { min-width: 0; min-height: 46px; display: grid; grid-template-columns: 24px minmax(0, 1fr); align-items: center; gap: 7px; padding: 9px 10px; border-radius: 10px; background: rgba(155, 228, 202, .065); }
.access-guide-item > span { color: var(--access-accent); font-size: 10px; font-weight: 850; letter-spacing: .04em; }
.access-guide-item p { min-width: 0; margin: 0; color: #d8e7e1; font-size: 12px; font-weight: 650; line-height: 1.4; overflow-wrap: anywhere; }
.access-form { position: relative; }
.password-input { height: 56px; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 11px; padding: 0 11px 0 15px; border: 1px solid rgba(206, 239, 227, .19); border-radius: 14px; background: rgba(3, 14, 10, .38); transition: border-color .2s, background .2s, box-shadow .2s; }
.password-input:focus-within { border-color: rgba(155, 228, 202, .62); background: rgba(3, 14, 10, .54); box-shadow: 0 0 0 4px rgba(155, 228, 202, .1); }
.password-input > i { color: var(--access-accent); font-size: 18px; }
.password-input input { min-width: 0; height: 100%; border: 0; outline: 0; background: transparent; color: var(--access-text); caret-color: var(--access-accent); }
.password-input input::placeholder { color: #81958e; }
.password-input button { width: 36px; height: 36px; display: grid; place-items: center; border: 0; border-radius: 10px; background: transparent; color: var(--access-muted); cursor: pointer; transition: background .2s, color .2s; }
.password-input button:hover { background: rgba(155, 228, 202, .09); color: var(--access-accent); }
.access-submit { width: 100%; min-height: 54px; display: flex; align-items: center; justify-content: center; gap: 9px; margin-top: 16px; padding: 0 20px; border: 0; border-radius: 14px; background: var(--access-accent-strong); color: #0a241c; font-size: 14px; font-weight: 800; white-space: nowrap; cursor: pointer; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .32); transition: background .2s, transform .2s, box-shadow .2s; }
.access-submit:hover { background: #d4f8ea; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .4), 0 14px 34px rgba(2, 15, 11, .22); }
.access-submit:active { transform: translateY(1px); }
.access-submit i { font-size: 17px; transition: transform .2s; }
.access-submit:hover i { transform: translateX(3px); }
.access-form > small { display: flex; align-items: center; justify-content: center; gap: 6px; margin-top: 15px; color: var(--access-muted); font-size: 11px; text-align: center; }
.access-form > small i { color: var(--access-accent); font-size: 14px; }
.access-page .form-error { display: flex; align-items: center; gap: 9px; margin: 0 0 18px; padding: 11px 13px; border: 1px solid rgba(255, 143, 153, .26); border-radius: 12px; background: rgba(150, 45, 58, .16); color: #ffd1d6; font-size: 13px; }
.access-page .form-error i { flex: none; font-size: 17px; }
.access-caption { margin: 20px 0 0; color: rgba(217, 236, 229, .58); font-size: 12px; text-align: center; }
.access-page button:focus-visible, .access-page a:focus-visible, .access-page input:focus-visible { outline-color: rgba(155, 228, 202, .48); }

@keyframes access-ambient-turn { to { transform: rotate(360deg) scale(1.05); } }
@keyframes access-stream-forward { from { transform: translate3d(-9%, 0, 0); } to { transform: translate3d(9%, 0, 0); } }
@keyframes access-stream-reverse { from { transform: translate3d(8%, 0, 0); } to { transform: translate3d(-8%, 0, 0); } }
@keyframes access-card-arrive { from { opacity: 0; transform: translateY(18px) scale(.985); } to { opacity: 1; transform: translateY(0) scale(1); } }

@media (prefers-reduced-motion: no-preference) {
    .access-atmosphere::before { animation: access-ambient-turn 34s linear infinite; }
    .access-streams span:nth-child(odd) { animation: access-stream-forward 15s ease-in-out infinite alternate; }
    .access-streams span:nth-child(even) { animation: access-stream-reverse 19s ease-in-out infinite alternate; }
    .access-streams span:nth-child(3), .access-streams span:nth-child(6) { animation-duration: 23s; }
    .access-card { animation: access-card-arrive .72s cubic-bezier(.16, 1, .3, 1) both; }
}

@media (prefers-reduced-transparency: reduce) {
    .access-card { background: #0b211a; backdrop-filter: none; -webkit-backdrop-filter: none; }
    .site-header .header-inner, .mobile-nav { background: #fafcfc; backdrop-filter: none; -webkit-backdrop-filter: none; }
}
.empty-page { min-height: 60vh; display: grid; place-items: center; align-content: center; gap: 14px; padding: 40px; text-align: center; }
.empty-page p, .empty-page h1 { margin: 0; }
.empty-page p { color: var(--accent); font-weight: 750; }
.empty-page h1 { font-size: clamp(34px, 5vw, 64px); }

.has-motion .reveal-item { opacity: 0; transform: translateY(18px); transition: opacity .7s cubic-bezier(.16, 1, .3, 1), transform .7s cubic-bezier(.16, 1, .3, 1); }
.has-motion .reveal-item.is-visible { opacity: 1; transform: translateY(0); }

@media (max-width: 1240px) {
    .site-header .header-inner { width: calc(100% - 40px); grid-template-columns: minmax(150px, 1fr) auto minmax(54px, 1fr); gap: 14px; padding-left: 14px; }
    .desktop-nav { gap: 1px; }
    .desktop-nav a { padding-inline: 8px; font-size: 12px; }
    .desktop-nav .nav-rules-link { padding-inline: 10px; font-size: 12px; }
    .hero-grid { grid-template-columns: minmax(0, .95fr) minmax(460px, 1.05fr); gap: 52px; }
    .project-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .category-rail { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .project-intro-grid { grid-template-columns: minmax(0, 1fr) 300px; gap: 46px; }
    .project-facts { padding-left: 22px; }
    .article-layout.has-toc { grid-template-columns: 210px minmax(0, 1fr); }
    .related-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

@media (max-width: 1023px) {
    :root { --header-height: 62px; --header-top: 12px; --header-offset: calc(var(--header-height) + var(--header-top) + 14px); }
    .site-container { width: min(100% - 40px, 900px); }
    .site-header .header-inner { width: calc(100% - 32px); grid-template-columns: minmax(0, 1fr) auto; gap: 12px; padding: 0 8px 0 13px; border-radius: 17px; }
    .desktop-nav { display: none; }
    .menu-toggle { display: grid; }
    .mobile-nav { position: fixed; z-index: 49; top: calc(var(--header-top) + var(--header-height) + 10px); right: 16px; left: 16px; max-height: calc(100dvh - var(--header-height) - var(--header-top) - 28px); display: grid; align-content: start; gap: 2px; overflow-y: auto; padding: 10px; border: 1px solid rgba(255, 255, 255, .9); border-radius: 18px; background: rgba(250, 252, 252, .96); box-shadow: 0 20px 60px rgba(29, 45, 51, .2), 0 2px 6px rgba(29, 45, 51, .06); opacity: 0; pointer-events: none; transform: translateY(-7px) scale(.985); transform-origin: top center; transition: opacity .2s ease, transform .24s cubic-bezier(.16, 1, .3, 1); }
    @supports ((-webkit-backdrop-filter: blur(28px)) or (backdrop-filter: blur(28px))) {
        .mobile-nav { background: rgba(248, 251, 250, .86); -webkit-backdrop-filter: saturate(180%) blur(28px); backdrop-filter: saturate(180%) blur(28px); }
    }
    .mobile-nav.is-open { opacity: 1; pointer-events: auto; transform: translateY(0) scale(1); }
    .mobile-nav a { min-height: 45px; display: flex; align-items: center; padding: 0 13px; border-radius: 11px; color: #334146; font-size: 14px; font-weight: 650; }
    .mobile-nav a:hover, .mobile-nav a.is-active { background: rgba(20, 46, 40, .07); color: #122621; }
    .mobile-nav a.is-child { min-height: 39px; padding-left: 30px; color: #738086; font-size: 12px; }
    .mobile-nav .nav-rules-link { min-height: 48px; display: flex; align-items: center; gap: 8px; margin-top: 7px; padding: 0 14px; border: 1px solid rgba(18, 48, 42, .08); border-radius: 12px; background: linear-gradient(145deg, #203d37, #122a25); color: #fff; font-size: 14px; font-weight: 730; box-shadow: inset 0 1px 0 rgba(255,255,255,.14), 0 6px 16px rgba(16, 50, 43, .16); }
    .mobile-nav .nav-rules-link:hover, .mobile-nav .nav-rules-link.is-active { background: linear-gradient(145deg, #285047, #17352f); color: #fff; }
    .mobile-nav .nav-rules-link i { color: #bfe8da; font-size: 18px; }
    .hero-grid { min-height: auto; grid-template-columns: 1fr; gap: 46px; padding-block: 64px; }
    .hero-copy { max-width: 760px; }
    .hero-copy h1 { font-size: clamp(46px, 8vw, 66px); }
    .hero-project, .hero-placeholder { min-height: 0; aspect-ratio: 16 / 10; }
    .featured-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .featured-item.is-lead { grid-column: 1 / -1; grid-row: auto; }
    .featured-item.is-lead .featured-cover { height: auto; min-height: 0; aspect-ratio: 16 / 8; }
    .project-intro-grid { grid-template-columns: 1fr; gap: 30px; }
    .project-facts { grid-template-columns: repeat(3, minmax(0, 1fr)); padding: 24px 0 0; border-top: 1px solid var(--line-strong); border-left: 0; }
    .contact-band { grid-template-columns: 1fr; gap: 24px; }
    .contact-panel { grid-template-columns: minmax(0, 1fr) auto; }
    .article-layout.has-toc { grid-template-columns: 1fr; gap: 24px; }
    .article-toc { position: static; max-height: none; padding: 0; border: 1px solid var(--line); border-radius: 12px; background: var(--surface-strong); }
    .toc-toggle { padding: 15px 17px; }
    .article-toc nav { display: none; padding: 0 9px 12px; }
    .article-toc.is-open nav { display: grid; }
    .related-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .footer-grid { grid-template-columns: 1fr auto; }
    .footer-meta { grid-column: 1 / -1; text-align: left; }
}

@media (max-width: 767px) {
    :root { --header-height: 58px; --header-top: 10px; --header-offset: calc(var(--header-height) + var(--header-top) + 13px); }
    .site-container { width: calc(100% - 32px); }
    .site-header .header-inner { width: calc(100% - 20px); padding-left: 11px; border-radius: 16px; }
    .site-brand > img { max-width: 148px; height: 33px; }
    .brand-symbol { width: 34px; height: 34px; border-radius: 10px; font-size: 17px; }
    .brand-copy strong { font-size: 16px; }
    .brand-copy small { display: none; }
    .header-search, .menu-toggle { width: 38px; height: 38px; border-radius: 11px; }
    .mobile-nav { top: calc(var(--header-top) + var(--header-height) + 8px); right: 10px; left: 10px; max-height: calc(100dvh - var(--header-height) - var(--header-top) - 20px); }
    .home-hero { min-height: auto; }
    .hero-grid { gap: 36px; padding-block: 50px; }
    .hero-kicker { margin-bottom: 16px; font-size: 11px; }
    .hero-copy h1 { font-size: clamp(38px, 12vw, 54px); -webkit-line-clamp: 3; }
    .hero-copy > p:not(.hero-kicker) { margin-top: 18px; font-size: 16px; }
    .hero-actions { margin-top: 28px; }
    .hero-actions .button { flex: 1; padding-inline: 15px; }
    .hero-project-caption { right: 18px; bottom: 17px; left: 18px; }
    .category-showcase, .featured-section, .latest-section, .related-section { padding-block: 64px; }
    .category-rail { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .category-rail a { min-height: 108px; padding: 18px; }
    .featured-grid, .project-grid, .services-grid, .related-grid { grid-template-columns: 1fr; }
    .featured-item.is-lead { grid-column: auto; }
    .featured-item.is-lead .featured-cover, .featured-cover { aspect-ratio: 3 / 2; }
    .project-card { display: grid; grid-template-columns: 39% minmax(0, 1fr); gap: 12px; padding: 6px; }
    .project-cover, .home-project-grid .project-cover { aspect-ratio: 3 / 2; }
    .project-card-body { min-width: 0; padding: 4px 5px 4px 0; }
    .project-card h3 { margin-top: 4px; font-size: 15px; }
    .project-card-summary { min-height: 34px; margin-top: 8px; padding: 6px 8px; }
    .project-card-summary > span { font-size: 8px; }
    .project-card-summary > p, .project-card-summary > strong { font-size: 10px; }
    .section-heading { margin-bottom: 26px; }
    .listing-hero { padding-block: 42px; }
    .listing-hero h1 { font-size: 42px; }
    .listing-content { padding-block: 40px 80px; }
    .pagination.pagination-detailed { grid-template-columns: 1fr; gap: 12px; margin-top: 42px; padding: 15px; }
    .pagination-summary { justify-content: center; gap: 8px; font-size: 10px; }
    .pagination-summary strong { font-size: 12px; }
    .pagination-pages { justify-content: center; }
    .pagination-position { justify-self: center; }
    .pagination a { width: 38px; height: 38px; border-radius: 9px; font-size: 12px; }
    .listing-search > div { height: 48px; }
    .project-header { padding-block: 26px 38px; }
    .project-header .breadcrumb { margin-bottom: 26px; }
    .project-intro-grid { gap: 26px; }
    .project-meta-line { margin-bottom: 13px; }
    .project-intro-main h1 { font-size: clamp(34px, 10vw, 42px); line-height: 1.16; }
    .project-summary { margin-top: 16px; font-size: 15px; line-height: 1.75; }
    .project-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 14px; padding-top: 20px; }
    .project-fact.is-price { grid-column: 1 / -1; }
    .project-content-link { min-height: 46px; }
    .contact-band { width: 100%; gap: 17px; margin-top: 30px; padding: 18px; border: 1px solid #d8e1e3; border-radius: 16px; background: rgba(255,255,255,.76); box-shadow: 0 10px 26px rgba(47, 67, 73, .07); }
    .contact-copy { gap: 12px; }
    .contact-copy > i { width: 40px; height: 40px; border-radius: 12px; font-size: 21px; }
    .contact-copy h2 { margin-bottom: 4px; font-size: 18px; }
    .contact-copy p { font-size: 12px; }
    .contact-panel { grid-template-columns: 1fr; gap: 10px; }
    .contact-actions { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
    .contact-actions button { width: 100%; min-height: 61px; padding: 9px 11px; }
    .contact-actions .contact-project-code { grid-column: 1 / -1; min-height: 57px; }
    .contact-qr-card { width: 100%; min-width: 0; grid-template-columns: 70px minmax(0, 1fr) auto; gap: 13px; padding: 9px 13px 9px 9px; }
    .contact-qr-frame { width: 70px; height: 70px; }
    .contact-qr-card figcaption span { font-size: 9px; }
    .contact-qr-card figcaption strong { font-size: 13px; }
    .contact-qr-card figcaption small { margin-top: 4px; font-size: 9px; }
    .contact-qr-card > i { font-size: 21px; }
    .article-layout { width: calc(100% - 32px); gap: 22px; padding-block: 34px 76px; }
    .article-reading-head { margin-bottom: 22px; }
    .article-content { font-size: 16px; line-height: 1.9; }
    .article-content h2 { margin-top: 48px; padding-top: 16px; font-size: 23px; }
    .article-content h3 { margin-top: 36px; padding-left: 12px; font-size: 20px; }
    .article-content img { margin-block: 22px; }
    .article-gallery { margin-block: 24px 30px; padding: 11px; }
    .article-gallery-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
    .article-gallery.is-collapsed .article-gallery-item:nth-child(n+7) { display: none; }
    .article-gallery-item { border-radius: 10px; }
    .article-content .article-gallery-item img { border-radius: 9px; }
    .footer-grid { grid-template-columns: 1fr; align-items: start; gap: 28px; }
    .footer-meta { grid-column: auto; }
    .access-shell { padding: 24px 18px; }
    .access-card { padding: 30px 24px 28px; border-radius: 18px; }
    .access-card::before { border-radius: 17px; }
    .access-intro { margin-block: 29px 26px; }
    .access-lock { width: 50px; height: 50px; margin-bottom: 18px; border-radius: 15px; font-size: 23px; }
    .access-intro h1 { font-size: 30px; }
    .access-note { font-size: 13px; }
    .access-guide { margin-top: 18px; padding: 11px; }
    .access-guide-list { gap: 7px; }
    .access-guide-item { grid-template-columns: 20px minmax(0, 1fr); gap: 5px; padding-inline: 8px; }
    .access-guide-item p { font-size: 11px; }
    .access-streams span:nth-child(even) { display: none; }
    .access-caption { max-width: 28em; margin-top: 16px; }
    .image-viewer { gap: 7px; padding: 16px 10px; }
    .image-viewer img { max-width: calc(100vw - 118px); max-height: calc(100vh - 100px); }
    .image-viewer-close { top: 12px; right: 12px; }
    .image-viewer-close, .image-viewer-nav { width: 40px; height: 40px; font-size: 19px; }
    .image-viewer figcaption small { display: none; }
}

@media (max-width: 360px) {
    .access-guide-list { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { scroll-behavior: auto !important; animation: none !important; transition-duration: .01ms !important; }
    .has-motion .reveal-item { opacity: 1; transform: none; }
}

@media (max-width: 1240px) {
    .home-page .hero-grid { min-height: 554px; grid-template-columns: minmax(320px, .76fr) minmax(0, 1.24fr); gap: 30px; padding: 34px; }
    .home-page .hero-copy h1 { font-size: clamp(46px, 4.6vw, 58px); }
    .home-page .hero-gallery { height: 438px; grid-template-columns: minmax(0, 1.48fr) minmax(176px, .7fr); gap: 11px; }
    .hero-supporting { gap: 11px; }
    .catalog-overview-grid { grid-template-columns: 1fr; gap: 18px; }
    .catalog-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); padding-bottom: 18px; border-right: 0; border-bottom: 1px solid var(--line); }
    .catalog-metrics div { grid-template-columns: auto 1fr; align-items: baseline; gap: 8px; }
}

@media (max-width: 1023px) {
    .home-page .hero-grid { grid-template-columns: 1fr; gap: 42px; padding: 42px; }
    .home-page .hero-grid::before { top: 41%; left: 12px; }
    .home-page .hero-copy { max-width: 720px; }
    .home-page .hero-copy h1 { max-width: 11em; }
    .home-page .hero-gallery { height: 460px; grid-template-columns: minmax(0, 1.55fr) minmax(210px, .72fr); }
    .catalog-category-nav { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .editor-pick-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 767px) {
    .home-hero { padding: 10px 0 22px; }
    .home-page .hero-grid { width: calc(100% - 20px); gap: 32px; padding: 30px 18px 18px; border-radius: 22px; }
    .home-page .hero-grid::before { top: 43%; right: 7px; bottom: 7px; left: 7px; border-radius: 17px; }
    .home-page .hero-kicker { margin-bottom: 12px; }
    .home-page .hero-copy h1 { font-size: clamp(40px, 12vw, 51px); }
    .home-page .hero-copy > .hero-description { margin-top: 17px; font-size: 13px; }
    .hero-search { height: 53px; margin-top: 23px; padding-left: 13px; border-radius: 13px; }
    .hero-search button { padding-inline: 13px; }
    .hero-proof { gap: 8px 13px; margin-top: 17px; }
    .home-page .hero-gallery { height: auto; grid-template-columns: 1fr; }
    .hero-feature { display: block; }
    .hero-feature-cover { aspect-ratio: 3 / 2; }
    .hero-supporting { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: none; }
    .hero-supporting article { display: block; }
    .hero-supporting-cover { aspect-ratio: 3 / 2; }
    .hero-feature-copy { min-height: 112px; }
    .hero-feature-copy h2 { font-size: 17px; }
    .catalog-overview-grid { padding-block: 20px; }
    .catalog-category-nav { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .catalog-category-nav a { padding: 11px 12px; }
    .latest-section { padding-block: 48px 72px; }
    .home-section-heading { display: grid; align-items: start; gap: 15px; margin-bottom: 24px; }
    .home-section-heading > a { justify-self: start; }
    .home-project-grid { gap: 22px; }
    .home-project-grid .project-card h3 { font-size: 15px; }
    .editor-picks { padding-bottom: 72px; }
    .editor-pick-list { grid-template-columns: 1fr; }
}

@media (max-width: 430px) {
    .hero-search input::placeholder { color: transparent; }
    .hero-search button { padding-inline: 13px; }
    .hero-supporting { grid-template-columns: 1fr; }
    .catalog-category-nav { grid-template-columns: 1fr; }
}

/* Trading rules: a formal contract document rather than a generic article */
.rules-page { --rules-pine: #123f38; --rules-pine-soft: #e8f1ee; --rules-gold: #b4873e; --rules-paper: #fff; --rules-canvas: #edf1f0; background: var(--rules-canvas); }
.rules-hero { position: relative; overflow: hidden; border-bottom: 1px solid rgba(255, 255, 255, .11); background: linear-gradient(124deg, #0e342f 0%, #164a42 58%, #1e5b50 100%); color: #fff; }
.rules-hero::before { position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px); background-size: 44px 44px; content: ""; mask-image: linear-gradient(90deg, transparent, #000 60%, #000); pointer-events: none; }
.rules-hero::after { position: absolute; top: 50%; right: -110px; width: 430px; height: 430px; border: 1px solid rgba(255,255,255,.08); border-radius: 50%; content: ""; transform: translateY(-50%); box-shadow: 0 0 0 52px rgba(255,255,255,.025), 0 0 0 104px rgba(255,255,255,.018); pointer-events: none; }
.rules-hero-grid { position: relative; z-index: 1; min-height: 510px; display: grid; grid-template-columns: minmax(0, 1fr) 400px; align-items: center; gap: clamp(72px, 8vw, 130px); padding-block: 66px; }
.rules-hero-copy { max-width: 750px; }
.rules-hero .breadcrumb { margin-bottom: 44px; color: rgba(232, 244, 240, .68); }
.rules-hero .breadcrumb a:hover { color: #fff; }
.rules-kicker { display: flex; align-items: center; gap: 14px; margin: 0 0 18px; }
.rules-kicker span { display: inline-flex; align-items: center; gap: 8px; color: #e4c78f; font-size: 12px; font-weight: 800; letter-spacing: .08em; }
.rules-kicker span::after { width: 42px; height: 1px; margin-left: 5px; background: rgba(228, 199, 143, .52); content: ""; }
.rules-kicker i { font-size: 18px; }
.rules-kicker small { color: rgba(229, 240, 237, .48); font-family: "Cascadia Code", Consolas, monospace; font-size: 9px; letter-spacing: .16em; }
.rules-hero h1 { max-width: 8em; margin: 0; color: #fff; font-size: clamp(58px, 5.5vw, 82px); font-weight: 780; line-height: 1.02; letter-spacing: -.06em; }
.rules-intro { max-width: 45em; margin: 27px 0 0; color: #d9e8e4; font-size: 16px; line-height: 1.95; }
.rules-assurance { display: flex; flex-wrap: wrap; gap: 10px 24px; margin-top: 30px; padding-top: 23px; border-top: 1px solid rgba(255, 255, 255, .12); }
.rules-assurance span { display: inline-flex; align-items: center; gap: 7px; color: rgba(238, 247, 244, .76); font-size: 11px; font-weight: 650; }
.rules-assurance i { color: #e4c78f; font-size: 15px; }
.rules-brief { position: relative; padding: 27px 29px 24px; border: 1px solid rgba(255, 255, 255, .58); border-radius: 3px; background: rgba(250, 252, 250, .96); color: #172924; box-shadow: 0 28px 80px rgba(3, 25, 21, .32); }
.rules-brief::before { position: absolute; top: 9px; right: 9px; bottom: 9px; left: 9px; border: 1px solid rgba(20, 73, 64, .1); content: ""; pointer-events: none; }
.rules-brief-code { position: relative; z-index: 1; display: flex; align-items: center; justify-content: space-between; margin-bottom: 22px; padding-bottom: 13px; border-bottom: 1px solid #d9e2df; color: #70807b; font-family: "Cascadia Code", Consolas, monospace; font-size: 8px; letter-spacing: .13em; }
.rules-brief-code small { color: var(--rules-gold); font-size: 8px; }
.rules-brief-head { position: relative; z-index: 1; display: flex; align-items: center; gap: 14px; }
.rules-brief-head > i { width: 46px; height: 46px; display: grid; place-items: center; flex: none; border: 1px solid rgba(18, 63, 56, .13); border-radius: 50%; background: var(--rules-pine-soft); color: var(--rules-pine); font-size: 23px; }
.rules-brief-head span, .rules-brief-head strong { display: block; }
.rules-brief-head span { margin-bottom: 3px; color: #76837f; font-size: 9px; letter-spacing: .08em; }
.rules-brief-head strong { color: #19322c; font-size: 17px; }
.rules-brief ol { position: relative; z-index: 1; display: grid; gap: 0; margin: 20px 0 0; padding: 0; list-style: none; counter-reset: flow-step; }
.rules-brief li { position: relative; display: grid; grid-template-columns: 34px minmax(0, 1fr); align-items: center; gap: 13px; padding: 13px 0; border-top: 1px solid #e1e7e5; }
.rules-brief li > span { color: var(--rules-gold); font-family: "Cascadia Code", Consolas, monospace; font-size: 10px; font-weight: 800; }
.rules-brief li strong, .rules-brief li small { display: block; }
.rules-brief li strong { margin-bottom: 3px; color: #20352f; font-size: 13px; }
.rules-brief li small { color: #74827d; font-size: 10px; line-height: 1.55; }
.rules-main { padding-block: 82px 120px; background: linear-gradient(180deg, #e9efed 0, var(--rules-canvas) 240px); }
.rules-layout { display: grid; grid-template-columns: 250px minmax(0, 940px); justify-content: center; align-items: start; gap: clamp(42px, 5vw, 76px); }
.rules-sidebar-card { position: sticky; top: 102px; padding: 21px; border: 1px solid #d4ddda; border-radius: 3px; background: rgba(250, 252, 251, .88); box-shadow: 0 15px 38px rgba(32, 56, 51, .06); backdrop-filter: blur(16px); }
.rules-sidebar-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin-bottom: 16px; padding-bottom: 15px; border-bottom: 1px solid #dbe3e0; }
.rules-sidebar-head small, .rules-sidebar-head strong { display: block; }
.rules-sidebar-head small { margin-bottom: 4px; color: #8b9894; font-family: "Cascadia Code", Consolas, monospace; font-size: 8px; letter-spacing: .14em; }
.rules-sidebar-head strong { color: #1c312c; font-size: 14px; }
.rules-sidebar-head > span { color: var(--rules-gold); font-family: "Cascadia Code", Consolas, monospace; font-size: 9px; }
.rules-sidebar nav { display: grid; gap: 3px; }
.rules-sidebar nav a { position: relative; padding: 9px 10px 9px 14px; border-radius: 2px; color: #53635f; font-size: 11px; line-height: 1.55; transition: background .2s, color .2s, transform .2s; }
.rules-sidebar nav a::before { position: absolute; top: 50%; left: 0; width: 3px; height: 3px; border-radius: 50%; background: #9eaaa6; content: ""; transform: translateY(-50%); }
.rules-sidebar nav a:hover, .rules-sidebar nav a.is-active { background: var(--rules-pine-soft); color: var(--rules-pine); transform: translateX(2px); }
.rules-sidebar nav a.is-active::before { height: 16px; border-radius: 2px; background: var(--rules-pine); }
.rules-sidebar nav a.is-sub { padding-left: 26px; font-size: 10px; }
.rules-help { display: grid; grid-template-columns: auto 1fr; gap: 9px; margin-top: 18px; padding: 16px 3px 2px; border-top: 1px solid #dbe3e0; color: #74827e; font-size: 10px; line-height: 1.65; }
.rules-help i { color: var(--rules-gold); font-size: 17px; }
.rules-content { min-width: 0; padding: 33px 62px 62px; border: 1px solid #d4ddda; border-top: 4px solid var(--rules-pine); border-radius: 3px; background: var(--rules-paper); color: #33423e; font-size: 15px; line-height: 2; box-shadow: 0 26px 70px rgba(33, 57, 52, .1); }
.rules-document-meta { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin: 0 -18px 42px; padding: 0 18px 25px; border-bottom: 1px solid #dce3e1; }
.rules-document-meta span { display: inline-flex; align-items: center; gap: 8px; color: var(--rules-pine); font-size: 11px; font-weight: 800; letter-spacing: .05em; }
.rules-document-meta span i { font-size: 17px; }
.rules-document-meta small { color: #8a9793; font-size: 9px; }
.rules-content > :first-child { margin-top: 0; }
.rules-content h2 { position: relative; margin: 66px 0 25px; padding: 22px 24px 20px; border-top: 1px solid #d6dfdc; border-bottom: 1px solid #d6dfdc; background: linear-gradient(90deg, #f2f7f5 0%, rgba(242, 247, 245, 0) 86%); color: #173a33; font-size: 25px; font-weight: 760; line-height: 1.45; letter-spacing: -.025em; }
.rules-content h2::before { position: absolute; top: -9px; left: 24px; padding: 0 8px; background: #fff; color: var(--rules-gold); font-family: "Cascadia Code", Consolas, monospace; font-size: 8px; font-weight: 800; letter-spacing: .16em; content: "RULE"; }
.rules-content h2::after { position: absolute; top: 0; bottom: 0; left: 0; width: 3px; background: var(--rules-pine); content: ""; }
.rules-content h3 { margin: 42px 0 17px; color: #1b3731; font-size: 19px; }
.rules-content p { margin: 0 0 22px; }
.rules-content > ul, .rules-content > ol { margin: 4px 0 30px; padding: 19px 25px 19px 49px; border: 1px solid #dce4e1; border-radius: 3px; background: #f8faf9; }
.rules-content li { margin: 9px 0; padding-left: .35em; }
.rules-content li::marker { color: var(--rules-pine); font-weight: 800; }
.rules-content blockquote { position: relative; margin: 0 0 40px; padding: 24px 28px 24px 63px; border: 1px solid #e5d5b9; border-left: 3px solid var(--rules-gold); border-radius: 3px; background: #fcf9f2; color: #5a4a31; }
.rules-content blockquote::before { position: absolute; top: 24px; left: 23px; width: 24px; height: 24px; display: grid; place-items: center; border: 1px solid rgba(180, 135, 62, .28); border-radius: 50%; color: #a7772d; font-size: 13px; font-weight: 900; content: "!"; }
.rules-content blockquote strong { color: #7b5520; }
.rules-content blockquote:has(+ blockquote) { margin-bottom: 0; padding-bottom: 9px; border-bottom: 0; }
.rules-content blockquote + blockquote { margin-top: 0; padding-top: 5px; border-top: 0; }
.rules-content blockquote + blockquote::before { display: none; }
.rules-content table { width: 100%; table-layout: fixed; margin: 31px 0 38px; border-collapse: separate; border-spacing: 0; overflow: hidden; border: 1px solid #cad7d3; border-radius: 4px; background: #fff; box-shadow: 0 13px 32px rgba(34, 63, 56, .08); }
.rules-content th, .rules-content td { padding: 15px 17px; border-right: 1px solid #d8e1de; border-bottom: 1px solid #d8e1de; text-align: left; vertical-align: top; word-break: break-word; }
.rules-content th:last-child, .rules-content td:last-child { border-right: 0; }
.rules-content tr:last-child td { border-bottom: 0; }
.rules-content .rules-table-head th, .rules-content table tr:first-child > td { border-color: rgba(255,255,255,.13); background: var(--rules-pine); color: #fff; font-size: 11px; font-weight: 760; letter-spacing: .04em; }
.rules-content td { color: #45534f; font-size: 12px; line-height: 1.75; }
.rules-content td:first-child { width: 24%; color: #1e3832; }
.rules-content tbody tr:not(.rules-table-head):nth-child(odd) td { background: #f8faf9; }
.rules-content tbody tr:not(.rules-table-head):hover td { background: #eef5f2; }
.rules-content td strong { color: var(--rules-pine); }
.rules-content img { max-width: 100%; height: auto; margin: 28px auto; border-radius: 3px; }
.rules-confirm { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 19px; margin-top: 70px; padding: 27px 28px; border-radius: 3px; background: linear-gradient(125deg, #102f2a, #16483f); color: #edf4f1; box-shadow: 0 16px 38px rgba(18, 63, 56, .18); }
.rules-confirm > i { color: #e1c489; font-size: 30px; }
.rules-content .rules-confirm h2 { margin: 0 0 5px; padding: 0; border: 0; background: none; color: #fff; font-size: 17px; letter-spacing: 0; }
.rules-content .rules-confirm h2::before, .rules-content .rules-confirm h2::after { display: none; }
.rules-confirm p { margin: 0; color: #bfd1cc; font-size: 11px; line-height: 1.7; }
.rules-confirm a { min-height: 42px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 0 16px; border: 1px solid rgba(255,255,255,.18); border-radius: 2px; background: #f2e3c3; color: #18352f; font-size: 11px; font-weight: 800; white-space: nowrap; }
.rules-confirm a i { font-size: 15px; transition: transform .2s; }
.rules-confirm a:hover i { transform: translateX(3px); }

@media (max-width: 1023px) {
    .rules-hero-grid { min-height: 0; grid-template-columns: 1fr; gap: 42px; padding-block: 54px; }
    .rules-hero-copy { max-width: 780px; }
    .rules-brief { max-width: 780px; }
    .rules-brief ol { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
    .rules-brief li { min-width: 0; align-content: start; border-top: 1px solid #e1e7e5; }
    .rules-layout { grid-template-columns: 1fr; gap: 28px; }
    .rules-sidebar-card { position: static; }
    .rules-sidebar nav { display: flex; flex-wrap: wrap; gap: 5px; }
    .rules-sidebar nav a, .rules-sidebar nav a.is-sub { padding: 8px 10px 8px 14px; background: #f0f5f3; font-size: 10px; }
    .rules-help { max-width: 36em; }
    .rules-content { padding-inline: clamp(36px, 7vw, 62px); }
}

@media (max-width: 767px) {
    .rules-hero::after { display: none; }
    .rules-hero-grid { gap: 30px; padding-block: 36px 42px; }
    .rules-hero .breadcrumb { margin-bottom: 30px; }
    .rules-kicker { align-items: flex-start; flex-direction: column; gap: 7px; }
    .rules-kicker span::after { display: none; }
    .rules-hero h1 { font-size: clamp(44px, 14vw, 60px); }
    .rules-intro { margin-top: 21px; font-size: 14px; line-height: 1.85; }
    .rules-assurance { gap: 8px 15px; margin-top: 23px; padding-top: 18px; }
    .rules-brief { padding: 23px; }
    .rules-brief ol { grid-template-columns: 1fr; gap: 0; }
    .rules-brief li { padding: 11px 0; }
    .rules-main { padding-block: 38px 72px; }
    .rules-layout { width: calc(100% - 28px); gap: 20px; }
    .rules-sidebar-card { padding: 15px; }
    .rules-sidebar-head { margin-bottom: 12px; }
    .rules-sidebar nav { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 4px; scrollbar-width: none; }
    .rules-sidebar nav::-webkit-scrollbar { display: none; }
    .rules-sidebar nav a, .rules-sidebar nav a.is-sub { flex: none; max-width: 210px; }
    .rules-help { display: none; }
    .rules-content { padding: 24px 18px 32px; font-size: 14px; line-height: 1.9; }
    .rules-document-meta { margin: 0 0 34px; padding: 0 2px 20px; }
    .rules-document-meta small { display: none; }
    .rules-content h2 { margin: 52px 0 22px; padding: 19px 15px 17px; font-size: 20px; }
    .rules-content h2::before { left: 15px; }
    .rules-content > ul, .rules-content > ol { padding: 16px 16px 16px 38px; }
    .rules-content blockquote { padding: 20px 17px 20px 49px; }
    .rules-content blockquote::before { top: 20px; left: 15px; }
    .rules-content table, .rules-content table tbody { display: block; }
    .rules-content table { margin: 26px 0 32px; overflow: visible; border: 0; background: transparent; box-shadow: none; }
    .rules-content .rules-table-head { display: none; }
    .rules-content table tr:not(.rules-table-head) { display: block; overflow: hidden; margin-bottom: 13px; border: 1px solid #d4dfdb; border-top: 3px solid var(--rules-pine); border-radius: 3px; background: #fff; box-shadow: 0 8px 20px rgba(34, 63, 56, .06); }
    .rules-content table tr:not(.rules-table-head) td { width: 100%; display: grid; grid-template-columns: 88px minmax(0, 1fr); gap: 12px; min-width: 0; padding: 12px 13px; border: 0; border-bottom: 1px solid #e0e7e4; background: #fff; font-size: 11px; }
    .rules-content table tr:not(.rules-table-head) td:last-child { border-bottom: 0; }
    .rules-content table.is-enhanced td::before { color: #7b8984; font-size: 9px; font-weight: 800; letter-spacing: .04em; content: attr(data-label); }
    .rules-confirm { grid-template-columns: auto minmax(0, 1fr); gap: 14px; margin-top: 50px; padding: 20px 18px; }
    .rules-confirm a { grid-column: 1 / -1; width: 100%; }
}

/* Search page: high-density project discovery surface. */
.search-page main { overflow: hidden; }
.search-stage { padding: 22px 0 42px; background: linear-gradient(180deg, #f4f6f7 0%, #eef2f1 100%); }
.search-stage > .site-container { position: relative; overflow: hidden; padding: clamp(36px, 4vw, 56px); border: 1px solid rgba(15, 55, 47, .22); border-radius: 28px; background: linear-gradient(132deg, #102f2a 0%, #17463d 58%, #1a5045 100%); box-shadow: 0 26px 70px rgba(29, 54, 49, .16); isolation: isolate; }
.search-stage > .site-container::before { position: absolute; z-index: -1; top: -180px; left: -170px; width: 420px; height: 420px; border: 1px solid rgba(205, 231, 221, .1); border-radius: 50%; content: ""; box-shadow: 0 0 0 58px rgba(205, 231, 221, .025), 0 0 0 116px rgba(205, 231, 221, .018); }
.search-breadcrumb { margin-bottom: 34px; color: rgba(222, 238, 232, .68); }
.search-breadcrumb a:hover { color: #fff; }
.search-stage-grid { display: grid; grid-template-columns: minmax(320px, .78fr) minmax(520px, 1.22fr); align-items: center; gap: clamp(42px, 6vw, 92px); }
.search-stage-copy { max-width: 590px; }
.search-eyebrow { display: flex; align-items: center; gap: 9px; margin: 0 0 18px; color: #bfe8da; font-size: 11px; font-weight: 760; letter-spacing: .08em; }
.search-eyebrow i { color: #dec98f; font-size: 16px; }
.search-stage-copy h1 { max-width: 9em; margin: 0; color: #f7fbf9; font-size: clamp(42px, 4.2vw, 62px); line-height: 1.12; letter-spacing: -.05em; }
.search-stage-copy > p:last-child { max-width: 34em; margin: 20px 0 0; color: #c5d8d2; font-size: 14px; line-height: 1.85; }
.search-console { min-width: 0; padding: clamp(22px, 2.6vw, 34px); border: 1px solid rgba(255,255,255,.72); border-radius: 20px; background: rgba(250, 252, 251, .97); box-shadow: inset 0 1px 0 #fff, 0 22px 52px rgba(4, 28, 23, .2); }
.search-console .listing-search { max-width: none; margin: 0; }
.search-console .listing-search > label { position: static; width: auto; height: auto; display: block; margin-bottom: 11px; overflow: visible; clip: auto; color: #34433f; font-size: 12px; font-weight: 720; }
.search-console .listing-search > div { height: 60px; padding-left: 18px; border-color: #cbd8d4; border-radius: 14px; background: #fff; box-shadow: 0 8px 24px rgba(39, 68, 61, .07); transition: border-color .22s ease, box-shadow .22s ease; }
.search-console .listing-search > div:focus-within { border-color: #4d8b7d; box-shadow: 0 0 0 4px rgba(23, 107, 91, .1), 0 12px 28px rgba(39, 68, 61, .09); }
.search-console .listing-search i { color: var(--accent); font-size: 20px; }
.search-console .listing-search input { color: #1d2b27; font-size: 14px; }
.search-console .listing-search button { margin: 5px; padding: 0 20px; border-radius: 10px; background: linear-gradient(145deg, #1d5147, #123b33); font-size: 12px; white-space: nowrap; transition: background .2s ease, box-shadow .2s ease, transform .2s ease; }
.search-console .listing-search button:hover { background: linear-gradient(145deg, #28675b, #174a40); box-shadow: 0 6px 15px rgba(17, 65, 55, .18); }
.search-console .listing-search button:active { transform: scale(.98); }
.search-shortcuts { display: grid; grid-template-columns: 88px minmax(0, 1fr); align-items: start; gap: 15px; margin-top: 24px; padding-top: 21px; border-top: 1px solid #dce5e2; }
.search-shortcuts > span { padding-top: 9px; color: #7a8984; font-size: 10px; font-weight: 720; }
.search-shortcuts nav { min-width: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 7px; }
.search-shortcuts a { min-width: 0; min-height: 36px; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 6px; padding: 0 10px; border-radius: 9px; background: #edf3f1; color: #334b45; font-size: 11px; font-weight: 680; transition: background .2s ease, color .2s ease, transform .2s ease; }
.search-shortcuts a:hover { background: #dfece8; color: var(--accent-deep); transform: translateY(-1px); }
.search-shortcuts a i { color: #75958c; font-size: 13px; }
.search-results { padding-top: 48px; }
.search-results-head { display: flex; align-items: end; justify-content: space-between; gap: 28px; margin-bottom: 30px; padding-bottom: 21px; border-bottom: 1px solid var(--line-strong); }
.search-results-head > div { min-width: 0; }
.search-results-head span { display: block; margin-bottom: 6px; color: var(--muted); font-size: 10px; font-weight: 720; }
.search-results-head h2 { overflow: hidden; margin: 0; font-size: clamp(25px, 3vw, 37px); letter-spacing: -.04em; text-overflow: ellipsis; white-space: nowrap; }
.search-results-head > p { margin: 0; color: var(--muted); font-size: 12px; white-space: nowrap; }
.search-results-head > p strong { margin-inline: 4px; color: var(--accent-deep); font-size: 21px; font-variant-numeric: tabular-nums; }
.search-project-grid { gap: 30px 20px; }
.search-start-state { min-height: 210px; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 24px; padding: 36px 4px; border-top: 1px solid var(--line-strong); border-bottom: 1px solid var(--line-strong); }
.search-start-icon, .search-empty-icon { width: 58px; height: 58px; display: grid; place-items: center; border-radius: 15px; background: #e4eeeb; color: var(--accent-deep); box-shadow: inset 0 1px 0 rgba(255,255,255,.9); }
.search-start-icon i, .search-empty-icon i { font-size: 27px; }
.search-start-state h2, .search-start-state p { margin: 0; }
.search-start-state h2 { font-size: 23px; letter-spacing: -.025em; }
.search-start-state p { margin-top: 7px; color: var(--muted); font-size: 13px; }
.search-start-state > a { display: inline-flex; align-items: center; gap: 8px; padding-bottom: 3px; border-bottom: 1px solid #8aa69f; color: var(--accent-deep); font-size: 12px; font-weight: 760; white-space: nowrap; }
.search-start-state > a i { font-size: 15px; transition: transform .2s ease; }
.search-start-state > a:hover i { transform: translateX(3px); }
.search-empty { min-height: 290px; grid-template-columns: auto minmax(0, 1fr) auto; place-items: initial; align-content: center; align-items: center; gap: 22px; padding: 42px; border-style: solid; text-align: left; }
.search-empty h3 { font-size: 21px; }
.search-empty p { max-width: 48em; margin-top: 8px; line-height: 1.7; }
.search-empty .button { margin: 0; }

@media (max-width: 1100px) {
    .search-stage-grid { grid-template-columns: minmax(260px, .7fr) minmax(470px, 1.3fr); gap: 38px; }
    .search-shortcuts nav { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
    .search-stage-grid { grid-template-columns: 1fr; gap: 34px; }
    .search-stage-copy h1 { max-width: 12em; }
    .search-stage-copy > p:last-child { max-width: 48em; }
}

@media (max-width: 767px) {
    .search-stage { padding: 10px 0 28px; }
    .search-stage > .site-container { width: calc(100% - 24px); padding: 27px 20px 20px; border-radius: 22px; }
    .search-breadcrumb { margin-bottom: 25px; }
    .search-stage-grid { gap: 27px; }
    .search-eyebrow { margin-bottom: 14px; font-size: 10px; }
    .search-stage-copy h1 { max-width: none; font-size: clamp(34px, 10.6vw, 44px); }
    .search-stage-copy > p:last-child { margin-top: 15px; font-size: 12px; line-height: 1.75; }
    .search-console { padding: 17px; border-radius: 16px; }
    .search-console .listing-search > label { margin-bottom: 9px; font-size: 11px; }
    .search-console .listing-search > div { height: 52px; padding-left: 13px; border-radius: 12px; }
    .search-console .listing-search input { font-size: 12px; }
    .search-console .listing-search button { margin: 4px; padding: 0 13px; border-radius: 9px; font-size: 11px; }
    .search-shortcuts { grid-template-columns: 1fr; gap: 9px; margin-top: 18px; padding-top: 16px; }
    .search-shortcuts > span { padding: 0; }
    .search-shortcuts nav { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .search-shortcuts a { min-height: 34px; }
    .search-results { padding-top: 34px; }
    .search-results-head { align-items: start; flex-direction: column; gap: 9px; margin-bottom: 22px; padding-bottom: 16px; }
    .search-results-head h2 { max-width: calc(100vw - 32px); font-size: 27px; }
    .search-results-head > p { white-space: normal; }
    .search-project-grid { gap: 20px; }
    .search-start-state { min-height: 260px; grid-template-columns: auto minmax(0, 1fr); gap: 17px; padding: 28px 2px; }
    .search-start-state > a { grid-column: 1 / -1; justify-self: start; margin-left: 75px; }
    .search-start-icon, .search-empty-icon { width: 56px; height: 56px; }
    .search-start-state h2 { font-size: 19px; }
    .search-start-state p { font-size: 11px; line-height: 1.7; }
    .search-empty { min-height: 320px; grid-template-columns: auto minmax(0, 1fr); gap: 17px; padding: 28px 20px; }
    .search-empty .button { grid-column: 1 / -1; justify-self: start; margin-left: 73px; }
}

@media (max-width: 390px) {
    .search-console .listing-search > div { grid-template-columns: auto minmax(0, 1fr); }
    .search-console .listing-search button { grid-column: 1 / -1; height: 42px; margin: 0 0 4px; }
    .search-console .listing-search > div { height: auto; min-height: 98px; padding-top: 3px; }
    .search-shortcuts nav { grid-template-columns: 1fr; }
}
