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

:root {
    --night: #070914;
    --night-soft: #11152a;
    --paper: #f6f3ed;
    --ink: #171928;
    --muted: #666b7c;
    --line: rgba(24, 28, 48, .12);
    --violet: #7255d9;
    --cyan: #43bfd0;
    --coral: #f06f5f;
    --gold: #e2ad54;
    --radius: 24px;
    --shadow: 0 28px 75px -48px rgba(10, 14, 38, .68);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-height: 100vh; background: var(--paper); color: var(--ink); font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
button, input, select { font: inherit; }
a { color: inherit; }
.shell { width: min(1180px, calc(100% - 40px)); margin-inline: auto; }
.hero-header { position: relative; height: clamp(92px, 11vw, 132px); overflow: hidden; background: var(--night); color: white; isolation: isolate; }
.hero-animation { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; z-index: -3; }
.home-hero { position: relative; height: clamp(145px, 17vw, 215px); overflow: hidden; background: var(--night); color: white; isolation: isolate; }
.home-hero:fullscreen { width: 100%; height: 100%; }
.home-nav { position: relative; z-index: 10; min-height: 74px; margin-top: -15px; padding: 9px 28px; display: flex; align-items: center; justify-content: space-between; gap: 32px; border: 1px solid rgba(24,28,48,.08); border-radius: 24px; background: rgba(255,255,255,.95); box-shadow: 0 24px 65px -38px rgba(10,14,38,.62); backdrop-filter: blur(18px); }
.home-brand { display: inline-flex; align-items: center; gap: 15px; flex: none; color: var(--ink); text-decoration: none; }
.home-brand:hover,.home-brand:focus-visible { color: #183f68; outline: none; }
.home-brand img { width: 52px; height: 52px; object-fit: contain; }
.home-brand > span { display: flex; flex-direction: column; gap: 3px; }
.home-brand strong { font-family: "Bai Jamjuree", Arial, sans-serif; font-size: 1.36rem; font-weight: 650; letter-spacing: -.025em; }
.home-brand small { color: var(--violet); font-size: .67rem; font-weight: 850; letter-spacing: .2em; text-transform: uppercase; }
.home-menu { display: flex; align-items: center; justify-content: flex-end; gap: clamp(12px, 1.8vw, 24px); }
.menu-item,.menu-dropdown > summary { position: relative; padding-block: 12px; color: #35394a; font-size: .86rem; font-weight: 800; letter-spacing: .035em; text-transform: uppercase; text-decoration: none; cursor: pointer; list-style: none; }
.menu-dropdown > summary::-webkit-details-marker { display: none; }
.menu-item:hover,.menu-item:focus-visible,.menu-dropdown > summary:hover,.menu-dropdown > summary:focus-visible { color: #183f68; outline: none; }
.menu-item.is-active::after,.menu-dropdown.is-current > summary::after { content: ""; position: absolute; left: 0; right: 0; bottom: 3px; height: 2px; border-radius: 2px; background: var(--gold); }
.menu-dropdown { position: relative; }
.menu-dropdown > summary span { display: inline-block; padding: 0; margin-left: 3px; font-size: .75rem; transition: transform .18s ease; }
.menu-dropdown[open] > summary span { transform: rotate(180deg); }
.dropdown-panel { position: absolute; top: calc(100% + 9px); right: 0; width: 260px; padding: 8px; visibility: hidden; opacity: 0; transform: translateY(7px); border: 1px solid #d9dee4; border-radius: 15px; background: rgba(255,255,255,.98); box-shadow: 0 18px 46px rgba(28,40,55,.16); transition: opacity .16s ease, transform .16s ease, visibility .16s; }
.menu-dropdown[open] .dropdown-panel,.menu-dropdown:hover .dropdown-panel,.menu-dropdown:focus-within .dropdown-panel { visibility: visible; opacity: 1; transform: none; }
.dropdown-panel a { display: block; padding: 10px 12px; border-radius: 9px; color: #3c4856; font-size: .84rem; font-weight: 650; letter-spacing: 0; text-decoration: none; text-transform: none; }
.dropdown-panel a:hover,.dropdown-panel a:focus-visible { color: #183f68; background: #f1f3f6; outline: none; }
.language-menu { position: relative; margin-left: 2px; padding-left: clamp(12px,1.6vw,21px); border-left: 1px solid #d9dee4; }
.language-menu > summary { min-height: 36px; display: flex; align-items: center; gap: 7px; padding: 5px 8px; border-radius: 10px; color: #35394a; font-family: inherit; font-size: .86rem; font-weight: 800; letter-spacing: .035em; cursor: pointer; list-style: none; white-space: nowrap; }
.language-menu > summary::-webkit-details-marker { display: none; }
.language-menu > summary:hover,.language-menu > summary:focus-visible { color: #183f68; background: #f1f3f6; outline: none; }
.language-menu > summary > svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.7; }
.language-chevron { transition: transform .18s ease; }
.language-menu[open] .language-chevron { transform: rotate(180deg); }
.language-panel { position: absolute; top: calc(100% + 10px); right: 0; width: 205px; padding: 8px; visibility: hidden; opacity: 0; transform: translateY(7px); border: 1px solid #d9dee4; border-radius: 15px; background: rgba(255,255,255,.98); box-shadow: 0 18px 46px rgba(28,40,55,.16); transition: opacity .16s ease, transform .16s ease, visibility .16s; }
.language-menu[open] .language-panel { visibility: visible; opacity: 1; transform: none; }
.language-panel button { width: 100%; display: flex; align-items: center; gap: 9px; padding: 9px 11px; border: 0; border-radius: 9px; color: #3c4856; background: transparent; font-family: inherit; font-size: .84rem; font-weight: 650; text-align: left; cursor: default; }
.language-panel button:hover,.language-panel button:focus-visible { color: #183f68; background: #f1f3f6; outline: none; }
.language-panel button.is-selected { color: #a85f0e; background: #fff5e8; }
.eyebrow { margin: 0 0 12px; font-size: .75rem; font-weight: 800; letter-spacing: .22em; text-transform: uppercase; color: #a8e2ea; }
.page-intro { padding-block: 34px 30px; }
.page-intro .eyebrow { color: var(--violet); margin-bottom: 8px; }
.page-intro h1 { margin: 0; max-width: 820px; font-family: Arial, Helvetica, sans-serif; font-weight: 650; font-size: clamp(1.65rem, 3.2vw, 2.7rem); line-height: 1.08; letter-spacing: -.035em; }
.page-intro > p:last-child { max-width: 680px; margin: 10px 0 0; color: var(--muted); font-size: .96rem; line-height: 1.55; }
.fullscreen-button { position: absolute; top: 18px; right: 20px; width: 46px; height: 46px; display: grid; place-items: center; padding: 0; border: 0; background: transparent; cursor: pointer; }
.fullscreen-button img { display: block; width: 28px; height: 28px; object-fit: contain; }
.fullscreen-button:hover,.fullscreen-button:focus-visible { opacity: .78; outline: none; }
.topbar { background: rgba(246,243,237,.92); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 10; backdrop-filter: blur(16px); }
.topbar-inner { min-height: 72px; display: flex; gap: 24px; align-items: center; justify-content: space-between; }
.nav-links { display: flex; flex-wrap: wrap; gap: 8px 20px; align-items: center; }
.nav-links a { text-decoration: none; font-size: .9rem; font-weight: 700; }
.nav-links a:hover { color: var(--violet); }
.language-selector { display: flex; align-items: center; gap: 10px; }
.language-selector label { font-size: .72rem; font-weight: 800; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); }
.language-selector select { max-width: 220px; border: 1px solid var(--line); border-radius: 999px; background: white; padding: 9px 34px 9px 13px; color: var(--ink); }
.section { padding-block: 54px; }
#public.section { padding-top: 38px; }
.section + .section { border-top: 1px solid var(--line); }
.portfolio-heading { margin-bottom: 34px; }
.portfolio-heading p { margin: 0 0 11px; color: #d9822b; font-size: .72rem; font-weight: 850; letter-spacing: .18em; text-transform: uppercase; }
.portfolio-heading h2 { margin: 0; color: var(--ink); font-family: "Bai Jamjuree", Arial, sans-serif; font-size: clamp(1.55rem, 2.7vw, 2.15rem); font-weight: 560; line-height: 1.08; letter-spacing: -.035em; }
.portfolio-heading h1 { margin: 0; color: var(--ink); font-family: "Bai Jamjuree", Arial, sans-serif; font-size: clamp(2rem, 4vw, 3.25rem); font-weight: 560; line-height: 1.04; letter-spacing: -.04em; }
.portfolio-heading span { display: block; width: 76px; height: 3px; margin-top: 20px; border-radius: 999px; background: #efa33d; }
.featured-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; align-items: stretch; }
.featured-card { min-width: 0; padding: 18px; display: flex; flex-direction: column; border: 1px solid #d9dde3; border-radius: 22px; background: #fff; box-shadow: 0 10px 28px rgba(28,40,55,.075); transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease; }
.featured-card:hover { transform: translateY(-3px); border-color: #c8ced6; box-shadow: 0 16px 34px rgba(28,40,55,.12); }
.featured-card h3 { margin: 0 0 8px; color: #243648; font-family: "Bai Jamjuree", Arial, sans-serif; font-size: 1.08rem; font-weight: 650; line-height: 1.22; text-align: center; }
.featured-media { position: relative; height: 175px; overflow: hidden; border-radius: 15px; background: #e8ebef; }
.featured-media-link { display: block; width: 100%; height: 100%; }
.featured-media img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .25s ease; }
.featured-media iframe { display: block; width: 100%; height: 100%; border: 0; }
.featured-card:hover .featured-media img { transform: scale(1.025); }
.play-icon { position: absolute; left: 50%; top: 50%; width: 48px; height: 48px; display: grid; place-items: center; padding-left: 3px; transform: translate(-50%,-50%); border: 1px solid rgba(255,255,255,.7); border-radius: 50%; color: #fff; background: rgba(7,9,20,.68); box-shadow: 0 8px 24px rgba(0,0,0,.25); }
.featured-action { min-height: 40px; margin-top: 14px; padding: 9px 13px; display: flex; align-items: center; justify-content: center; border-radius: 10px; color: #fff; background: #ed941f; font-size: .77rem; font-weight: 750; line-height: 1.25; text-align: center; text-decoration: none; }
.featured-action:hover { background: #d77f0e; }
.featured-action.is-placeholder { cursor: default; }
.featured-card > p { margin: 15px 2px 2px; color: #5e6875; font-size: .82rem; line-height: 1.38; }
.home-footer { margin-top: 44px; border-top: 1px solid #d7dce2; background: rgba(255,255,255,.58); }
.home-footer-inner { min-height: 150px; padding-block: 30px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 34px; }
.social-links { display: flex; align-items: center; gap: 10px; }
.social-links a { width: 38px; height: 38px; display: grid; place-items: center; border: 1px solid #d3d9df; border-radius: 11px; color: #34495d; background: #fff; box-shadow: 0 5px 15px rgba(28,40,55,.06); transition: color .18s ease, border-color .18s ease, transform .18s ease; }
.social-links a:hover,.social-links a:focus-visible { color: #ed941f; border-color: #ed941f; transform: translateY(-2px); outline: none; }
.social-links svg { width: 18px; height: 18px; fill: currentColor; }
.footer-copyright { margin: 0; color: #546170; font-size: .78rem; white-space: nowrap; }
.footer-contact { display: flex; flex-direction: column; gap: 4px; color: #65717e; font-size: .73rem; font-style: normal; line-height: 1.35; text-align: right; }
.footer-contact strong { color: #243648; font-family: "Bai Jamjuree", Arial, sans-serif; font-size: .82rem; font-weight: 650; }
.footer-contact a { color: inherit; text-decoration: none; }
.footer-contact a:hover { color: #d77f0e; text-decoration: underline; }
.construction-main { min-height: 470px; display: grid; align-items: center; }
.construction-panel { padding-block: 70px; }
.construction-icon { width: 74px; height: 74px; display: grid; place-items: center; margin-bottom: 28px; border: 1px solid #d5dbe1; border-radius: 20px; color: #d9822b; background: #fff; box-shadow: 0 10px 26px rgba(28,40,55,.07); }
.construction-icon svg { width: 43px; height: 43px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.construction-note { margin: -12px 0 0; color: var(--muted); font-size: .9rem; }
.construction-preview { width: min(520px,100%); margin: 34px 0 0; overflow: hidden; border: 1px solid #d5dbe1; border-radius: 20px; background: #fff; box-shadow: 0 12px 32px rgba(28,40,55,.09); }
.construction-preview img { display: block; width: 100%; max-height: 290px; object-fit: cover; }
.publications-main { padding-block: 66px 80px; }
.publications-heading { margin-bottom: 48px; }
.publications-heading > p { margin: 0 0 10px; color: #d9822b; font-size: .72rem; font-weight: 850; letter-spacing: .18em; text-transform: uppercase; }
.publications-heading h1 { margin: 0; color: var(--ink); font-family: "Bai Jamjuree",Arial,sans-serif; font-size: clamp(2.2rem,4.6vw,4rem); font-weight: 560; line-height: 1.04; letter-spacing: -.04em; }
.publications-heading > span { display: block; width: 78px; height: 3px; margin-top: 20px; border-radius: 10px; background: #efa33d; }
.publication-group + .publication-group { margin-top: 62px; }
.publication-group > h2 { margin: 0 0 20px; color: #243648; font-family: "Bai Jamjuree",Arial,sans-serif; font-size: clamp(1.35rem,2.3vw,2rem); font-weight: 600; }
.publication-list { display: grid; gap: 16px; }
.publication-card { display: grid; grid-template-columns: 150px minmax(0,1fr); gap: 24px; padding: 22px; border: 1px solid #d6dce2; border-radius: 22px; background: #fff; box-shadow: 0 9px 28px rgba(28,40,55,.065); transition: transform .2s ease,border-color .2s ease,box-shadow .2s ease; }
.publication-card:hover { transform: translateY(-2px); border-color: #c5cdd5; box-shadow: 0 15px 34px rgba(28,40,55,.1); }
.publication-logo { min-height: 116px; display: grid; place-items: center; overflow: hidden; border: 1px solid #e2e6ea; border-radius: 15px; background: #f7f8fa; }
.publication-logo img { display: block; width: 100%; max-height: 126px; padding: 12px; object-fit: contain; }
.publication-logo iframe { display: block; width: 100%; min-height: 116px; border: 0; }
.publication-placeholder { width: 46px; height: 46px; fill: none; stroke: #9aa6b2; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.publication-copy h3 { margin: 0; color: #243648; font-family: "Bai Jamjuree",Arial,sans-serif; font-size: 1.13rem; font-weight: 650; line-height: 1.25; }
.publication-meta { margin: 6px 0 10px; color: #9b5c1b; font-size: .75rem; font-weight: 650; line-height: 1.4; }
.publication-summary { margin: 0; color: #616c78; font-size: .78rem; line-height: 1.38; }
.publication-summary p { margin: 0; }
.publication-summary p + p { margin-top: 9px; }
.publication-links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.publication-links a { display: inline-flex; align-items: center; gap: 5px; min-height: 34px; padding: 7px 11px; border: 1px solid #d8dde3; border-radius: 9px; color: #33495d; background: #f8f9fa; font-size: .72rem; font-weight: 750; text-decoration: none; }
.publication-links a:hover,.publication-links a:focus-visible { color: #fff; border-color: #dd861b; background: #e99325; outline: none; }
.private-heading { margin-top: clamp(42px,5vw,58px); }
.private-grid { grid-template-columns: repeat(2,minmax(0,280px)); justify-content: center; }
.inline-mail { color: #9b5c1b; font-weight: 700; text-underline-offset: 2px; }
.inline-mail:hover,.inline-mail:focus-visible { color: #304d68; }
.references-main { padding-block: 66px 80px; }
.references-heading { margin-bottom: 48px; }
.references-heading > p { margin: 0 0 10px; color: #d9822b; font-size: .72rem; font-weight: 850; letter-spacing: .18em; text-transform: uppercase; }
.references-heading h1 { margin: 0; color: var(--ink); font-family: "Bai Jamjuree",Arial,sans-serif; font-size: clamp(2.2rem,4.6vw,4rem); font-weight: 560; line-height: 1.04; letter-spacing: -.04em; }
.references-heading > span { display: block; width: 78px; height: 3px; margin-top: 20px; border-radius: 10px; background: #efa33d; }
.reference-group + .reference-group { margin-top: 62px; }
.reference-group > h2 { margin: 0 0 20px; color: #243648; font-family: "Bai Jamjuree",Arial,sans-serif; font-size: clamp(1.35rem,2.3vw,2rem); font-weight: 600; }
.reference-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 16px; align-items: stretch; }
.reference-card { display: grid; grid-template-columns: 108px minmax(0,1fr); gap: 18px; min-width: 0; padding: 20px; border: 1px solid #d6dce2; border-radius: 20px; background: #fff; box-shadow: 0 9px 28px rgba(28,40,55,.06); transition: transform .2s ease,border-color .2s ease,box-shadow .2s ease; }
.reference-card:hover { transform: translateY(-2px); border-color: #c5cdd5; box-shadow: 0 15px 34px rgba(28,40,55,.1); }
.reference-logo { width: 108px; height: 108px; display: grid; place-items: center; overflow: hidden; border: 1px solid #e2e6ea; border-radius: 15px; background: #f7f8fa; }
.reference-logo img { display: block; width: 100%; height: 100%; padding: 10px; object-fit: contain; }
.reference-logo svg { width: 44px; height: 44px; fill: none; stroke: #9aa6b2; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.reference-copy { min-width: 0; }
.reference-copy h3 { margin: 0; color: #243648; font-family: "Bai Jamjuree",Arial,sans-serif; font-size: 1.02rem; font-weight: 650; line-height: 1.25; }
.reference-summary { margin: 8px 0 0; color: #616c78; font-size: .77rem; line-height: 1.4; }
.reference-details { margin-top: 8px; color: #8b5a27; font-size: .72rem; font-weight: 600; line-height: 1.38; }
.reference-details p { margin: 0; }
.reference-details p + p { margin-top: 5px; }
.reference-links { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 13px; }
.reference-links a { display: inline-flex; align-items: center; gap: 4px; min-height: 32px; padding: 6px 10px; border: 1px solid #d8dde3; border-radius: 9px; color: #33495d; background: #f8f9fa; font-size: .69rem; font-weight: 750; line-height: 1.2; text-decoration: none; }
.reference-links a:hover,.reference-links a:focus-visible { color: #fff; border-color: #dd861b; background: #e99325; outline: none; }
.section-heading { display: grid; grid-template-columns: minmax(0, .7fr) minmax(280px, 1fr); gap: 40px; align-items: end; margin-bottom: 34px; }
.section-heading h2 { margin: 0; font: 500 clamp(2rem, 4vw, 3.5rem)/1.03 Georgia, serif; letter-spacing: -.035em; }
.section-heading p { margin: 0; color: var(--muted); line-height: 1.7; }
.card-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.project-card { min-width: 0; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: rgba(255,255,255,.7); box-shadow: var(--shadow); transition: transform .22s ease, box-shadow .22s ease; }
.project-card:hover { transform: translateY(-5px); box-shadow: 0 34px 85px -48px rgba(10,14,38,.82); }
.project-visual { height: 82px; display: grid; place-items: center; background: linear-gradient(135deg, #242846, #7255d9); color: white; }
.tone-cyan .project-visual { background: linear-gradient(135deg, #12353e, var(--cyan)); }
.tone-coral .project-visual { background: linear-gradient(135deg, #522d38, var(--coral)); }
.tone-gold .project-visual { background: linear-gradient(135deg, #463719, var(--gold)); }
.project-visual span { font: italic 500 2rem Georgia, serif; }
.project-body { padding: 15px; }
.card-kind { margin: 0 0 8px !important; font-size: .68rem !important; font-weight: 850; letter-spacing: .16em; text-transform: uppercase; color: var(--violet) !important; }
.project-card h3 { margin: 0; font: 600 1.12rem/1.15 Arial, sans-serif; }
.project-card p { margin: 9px 0 14px; color: var(--muted); line-height: 1.45; font-size: .78rem; }
.text-link { font-size: .75rem; font-weight: 800; text-decoration: none; border-bottom: 1px solid currentColor; padding-bottom: 3px; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: 0 20px; border: 0; border-radius: 999px; background: var(--violet); color: white; text-decoration: none; font-weight: 800; cursor: pointer; }
.button:hover { filter: brightness(1.08); }
.button-quiet { background: transparent; color: var(--ink); border: 1px solid var(--line); }
.access-callout { padding: clamp(28px, 5vw, 58px); border-radius: 32px; background: var(--night-soft); color: white; display: grid; grid-template-columns: 1fr auto; gap: 32px; align-items: center; }
.access-callout h2 { margin: 0 0 12px; font: 500 clamp(1.8rem, 4vw, 3rem)/1.05 Georgia, serif; }
.access-callout p { margin: 0; max-width: 680px; color: rgba(255,255,255,.68); line-height: 1.65; }
.auth-layout { min-height: 58vh; display: grid; grid-template-columns: minmax(260px,.8fr) minmax(340px,1fr); gap: clamp(28px, 6vw, 90px); align-items: center; padding-block: 64px; }
.auth-copy h2 { margin: 0 0 16px; font: 500 clamp(2rem,5vw,4rem)/1 Georgia,serif; }
.auth-copy p { color: var(--muted); line-height: 1.7; }
.keypad-panel { width: min(100%, 430px); justify-self: end; padding: clamp(22px,5vw,38px); border: 1px solid var(--line); border-radius: 30px; background: white; box-shadow: var(--shadow); }
.pin-display { width: 100%; height: 68px; border: 1px solid var(--line); border-radius: 16px; background: #f2f0eb; text-align: center; font-size: 2rem; letter-spacing: .35em; padding-left: .35em; }
.keypad { display: grid; grid-template-columns: repeat(3,1fr); gap: 10px; margin-top: 14px; }
.key { aspect-ratio: 1.45; border: 1px solid var(--line); border-radius: 15px; background: var(--paper); font-weight: 850; font-size: 1.2rem; cursor: pointer; }
.key:hover, .key:focus-visible { background: #e8e2f7; border-color: var(--violet); }
.key-zero { grid-column: 2; }
.keypad-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 14px; }
.message { border-radius: 14px; padding: 12px 15px; margin-bottom: 14px; background: #fbe5e1; color: #8a2f24; font-weight: 700; font-size: .9rem; }
.session-strip { display: flex; gap: 14px; align-items: center; justify-content: space-between; padding: 16px 0; }
.session-strip p { margin: 0; color: var(--muted); }
.logout-form { margin: 0; }
.protected-main { min-height: 72vh; padding-block: 62px; }
.protected-panel { border: 1px solid var(--line); border-radius: 30px; padding: clamp(28px,5vw,58px); background: white; box-shadow: var(--shadow); }
.protected-panel h2 { margin: 0 0 14px; font: 500 clamp(2rem,5vw,4rem)/1 Georgia,serif; }
.protected-panel > p { color: var(--muted); line-height: 1.7; max-width: 760px; }
.status-pill { display: inline-flex; padding: 7px 12px; border-radius: 999px; background: #dff2e9; color: #17633f; font-size: .78rem; font-weight: 850; }
.site-footer { padding-block: 34px; border-top: 1px solid var(--line); color: var(--muted); font-size: .82rem; }
@media (max-width: 820px) {
    .home-nav { align-items: flex-start; flex-direction: column; gap: 8px; padding: 14px 22px; }
    .home-menu { width: 100%; justify-content: flex-start; flex-wrap: wrap; gap: 6px 22px; }
    .card-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
    .featured-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
    .private-grid { grid-template-columns: repeat(2,minmax(0,280px)); }
    .home-footer-inner { grid-template-columns: 1fr 1fr; }
    .footer-copyright { grid-column: 1 / -1; grid-row: 2; text-align: center; }
    .section-heading, .auth-layout { grid-template-columns: 1fr; }
    .keypad-panel { justify-self: stretch; }
    .access-callout { grid-template-columns: 1fr; }
    .reference-grid { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
    .shell { width: min(100% - 24px, 1180px); }
    .hero-header { height: 88px; }
    .home-hero { height: 120px; }
    .home-nav { margin-top: -10px; border-radius: 20px; }
    .home-brand img { width: 48px; height: 48px; }
    .home-brand strong { font-size: 1.05rem; }
    .home-menu span { font-size: .68rem; }
    .topbar-inner, .session-strip { align-items: stretch; flex-direction: column; padding-block: 14px; }
    .language-selector { justify-content: space-between; }
    .language-selector select { max-width: 185px; }
    .card-grid { grid-template-columns: 1fr; }
    .featured-grid { grid-template-columns: 1fr; }
    .private-grid { grid-template-columns: 1fr; }
    .home-footer-inner { grid-template-columns: 1fr; justify-items: center; gap: 22px; }
    .footer-copyright { grid-column: auto; grid-row: auto; }
    .footer-contact { text-align: center; }
    .publication-card { grid-template-columns: 1fr; gap: 16px; padding: 17px; }
    .publication-logo { min-height: 100px; }
    .publication-logo img { max-height: 110px; }
    .reference-card { grid-template-columns: 84px minmax(0,1fr); gap: 14px; padding: 16px; }
    .reference-logo { width: 84px; height: 84px; }
    .section { padding-block: 52px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }
