:root {
    --bg: #f6f7f3;
    --bg-soft: #eef3ee;
    --surface: rgba(255, 255, 255, 0.88);
    --surface-strong: #ffffff;
    --ink: #111827;
    --muted: #667085;
    --line: rgba(17, 24, 39, 0.12);
    --accent: #0f766e;
    --accent-2: #c2410c;
    --accent-3: #1d4ed8;
    --success: #0f9f6e;
    --shadow: 0 18px 48px rgba(15, 23, 42, 0.12);
    --shadow-soft: 0 10px 28px rgba(15, 23, 42, 0.08);
    --radius-card: 8px;
    --container: 1180px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: 'Manrope', sans-serif;
    color: var(--ink);
    background: linear-gradient(180deg, #fbfcf8 0%, var(--bg) 44%, #eef3ee 100%);
}

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

img {
    display: block;
    max-width: 100%;
}

.container {
    width: min(calc(100% - 32px), var(--container));
    margin: 0 auto;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    backdrop-filter: blur(18px);
    background: rgba(251, 252, 248, 0.82);
    border-bottom: 1px solid rgba(17, 24, 39, 0.07);
    transition: box-shadow 0.25s ease, background 0.25s ease;
}

.site-header.is-scrolled {
    background: rgba(251, 252, 248, 0.94);
    box-shadow: 0 12px 34px rgba(15, 23, 42, 0.08);
}

.nav-wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 82px;
    gap: 20px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 14px;
}

.brand strong,
.home-hero-copy h1,
.page-hero-copy h1,
.hero-copy h1,
.section-heading h2,
.home-band h2,
.form-card-heading h2,
.cta-panel h2,
.login-panel h1,
.footer-grid h3 {
    font-family: 'Space Grotesk', sans-serif;
}

.brand small {
    display: block;
    color: var(--muted);
    font-size: 0.82rem;
}

.brand-mark {
    width: 46px;
    height: 46px;
    border-radius: 8px;
    display: grid;
    place-items: center;
    font-weight: 800;
    color: white;
    background: linear-gradient(135deg, #0f766e, #14b8a6);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.34), 0 12px 24px rgba(15, 118, 110, 0.2);
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 8px;
}

.site-nav a {
    padding: 10px 13px;
    border-radius: 999px;
    color: var(--muted);
    font-weight: 800;
    transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.site-nav a.is-active,
.site-nav a:hover {
    color: var(--ink);
    background: rgba(15, 118, 110, 0.09);
}

.site-nav a:hover {
    transform: translateY(-1px);
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 48px;
    padding: 13px 19px;
    border-radius: 999px;
    border: 1px solid transparent;
    font-weight: 800;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.button:hover {
    transform: translateY(-2px);
}

.button-primary {
    color: white;
    background: linear-gradient(135deg, var(--accent), #14b8a6);
    box-shadow: 0 16px 32px rgba(15, 118, 110, 0.23);
}

.button-primary:hover {
    box-shadow: 0 20px 40px rgba(15, 118, 110, 0.28);
}

.button-secondary {
    color: white;
    background: linear-gradient(135deg, #172033, #334155);
}

.button-outline {
    border-color: rgba(15, 118, 110, 0.23);
    background: rgba(255, 255, 255, 0.68);
    color: var(--ink);
}

.button-outline:hover {
    border-color: rgba(15, 118, 110, 0.42);
    background: rgba(255, 255, 255, 0.9);
}

.button-on-dark {
    color: white;
    border-color: rgba(255, 255, 255, 0.25);
    background: rgba(255, 255, 255, 0.08);
}

.home-hero {
    position: relative;
    overflow: hidden;
    padding: 36px 0 12px;
}

.home-hero::before {
    content: "";
    position: absolute;
    inset: auto 0 0;
    height: 36%;
    background: linear-gradient(180deg, rgba(238, 243, 238, 0), rgba(238, 243, 238, 0.88));
    pointer-events: none;
}

.home-hero-grid {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 0.94fr) minmax(420px, 1.06fr);
    gap: clamp(28px, 4vw, 54px);
    align-items: start;
}

.home-hero-copy {
    padding: 16px 0;
}

.eyebrow,
.footer-kicker,
.section-heading p strong {
    text-transform: uppercase;
    letter-spacing: 0.14em;
    font-size: 0.76rem;
    font-weight: 800;
    color: var(--accent);
}

.home-hero-copy h1,
.hero-copy h1,
.login-panel h1 {
    margin: 16px 0;
    font-size: clamp(2.5rem, 4.2vw, 4.25rem);
    line-height: 0.98;
}

.home-hero-copy p,
.page-hero-copy p,
.page-summary p,
.hero-copy p,
.section-heading p,
.feature-card p,
.portal-card p,
.compact-card p,
.card p,
.section-card p,
.contact-card p,
.login-panel p,
.role-card p,
.footer-grid p,
.band-points p {
    color: var(--muted);
    line-height: 1.7;
}

.home-hero-copy > p {
    max-width: 620px;
    font-size: 1.07rem;
}

.hero-actions,
.inline-actions {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    margin-top: 26px;
}

.hero-proof {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin-top: 34px;
}

.hero-proof div {
    border-top: 1px solid var(--line);
    padding-top: 16px;
}

.hero-proof strong {
    display: block;
    margin-bottom: 6px;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.04rem;
}

.hero-proof span {
    display: block;
    color: var(--muted);
    font-size: 0.91rem;
    line-height: 1.55;
}

.home-hero-visual {
    position: relative;
    min-height: 470px;
    border-radius: 16px;
    overflow: hidden;
    background: #dfe8e2;
    box-shadow: 0 28px 70px rgba(15, 23, 42, 0.2);
    transform-style: preserve-3d;
}

.home-hero-visual img {
    width: 100%;
    height: 100%;
    min-height: 470px;
    object-fit: cover;
    transition: transform 0.8s ease;
}

.home-hero-visual:hover img {
    transform: scale(1.035);
}

.home-hero-visual::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(17, 24, 39, 0.16), rgba(17, 24, 39, 0) 45%, rgba(15, 118, 110, 0.12));
    pointer-events: none;
}

.hero-status {
    position: absolute;
    z-index: 2;
    border: 1px solid rgba(255, 255, 255, 0.48);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.84);
    box-shadow: var(--shadow-soft);
    backdrop-filter: blur(18px);
}

.hero-status-top {
    top: 20px;
    left: 20px;
    display: flex;
    gap: 12px;
    max-width: 290px;
    padding: 15px;
}

.status-dot {
    width: 12px;
    height: 12px;
    flex: 0 0 auto;
    border-radius: 999px;
    margin-top: 5px;
    background: var(--success);
    box-shadow: 0 0 0 8px rgba(15, 159, 110, 0.14);
}

.hero-status strong {
    display: block;
    font-family: 'Space Grotesk', sans-serif;
}

.hero-status small,
.hero-status span {
    color: var(--muted);
    line-height: 1.5;
}

.hero-status-bottom {
    right: 22px;
    bottom: 22px;
    display: grid;
    gap: 2px;
    width: min(220px, calc(100% - 44px));
    padding: 18px;
}

.hero-status-bottom strong {
    color: var(--accent);
    font-size: 2rem;
}

.proof-strip {
    padding: 10px 0 20px;
}

.proof-strip-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1px;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--line);
    box-shadow: var(--shadow-soft);
}

.proof-strip-grid span {
    min-height: 74px;
    display: grid;
    align-items: center;
    padding: 17px 18px;
    background: rgba(255, 255, 255, 0.8);
    font-weight: 800;
    line-height: 1.35;
}

.page-hero {
    padding: 52px 0 18px;
}

.page-hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
    gap: 28px;
    align-items: stretch;
}

.page-hero-copy {
    padding: 10px 0;
}

.page-hero-copy h1 {
    margin: 16px 0;
    max-width: 840px;
    font-size: clamp(2.25rem, 4vw, 4rem);
    line-height: 1.02;
}

.page-hero-copy p {
    max-width: 720px;
    font-size: 1.05rem;
}

.page-summary,
.page-visual,
.login-visual,
.compact-card,
.form-card {
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.84);
    box-shadow: var(--shadow-soft);
}

.page-summary {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-end;
    min-height: 250px;
    padding: 24px;
}

.page-summary .portal-tag {
    margin-bottom: auto;
}

.page-summary h3 {
    margin: 0 0 10px;
}

.page-visual,
.login-visual {
    position: relative;
    overflow: hidden;
    min-height: 340px;
    background: #dfe8e2;
    box-shadow: 0 22px 54px rgba(15, 23, 42, 0.16);
    transform-style: preserve-3d;
    transition: transform 0.18s ease, box-shadow 0.22s ease;
}

.page-visual:hover,
.login-visual:hover {
    box-shadow: 0 28px 68px rgba(15, 23, 42, 0.2);
}

.page-visual img,
.login-visual img {
    width: 100%;
    height: 100%;
    min-height: inherit;
    object-fit: cover;
    transition: transform 0.8s ease;
}

.page-visual:hover img,
.login-visual:hover img {
    transform: scale(1.035);
}

.page-visual::after,
.login-visual::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(17, 24, 39, 0.02), rgba(17, 24, 39, 0.22));
    pointer-events: none;
}

.visual-float {
    position: absolute;
    z-index: 2;
    border: 1px solid rgba(255, 255, 255, 0.48);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.86);
    box-shadow: var(--shadow-soft);
    backdrop-filter: blur(18px);
}

.visual-float-top {
    top: 16px;
    left: 16px;
    display: flex;
    gap: 12px;
    max-width: 295px;
    padding: 14px;
}

.visual-float-bottom {
    right: 16px;
    bottom: 16px;
    display: grid;
    gap: 3px;
    max-width: min(260px, calc(100% - 32px));
    padding: 16px;
}

.visual-float strong {
    display: block;
    font-family: 'Space Grotesk', sans-serif;
}

.visual-float small,
.visual-float span {
    color: var(--muted);
    line-height: 1.45;
}

.compact-section {
    padding-top: 20px;
}

.compact-card-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.compact-stack {
    display: grid;
    gap: 14px;
    align-content: start;
}

.compact-card {
    padding: 16px;
    transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}

.compact-card:hover {
    transform: translateY(-3px);
    border-color: rgba(15, 118, 110, 0.32);
    box-shadow: var(--shadow);
}

.compact-card span,
.operations-rail span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 30px;
    margin-bottom: 12px;
    border-radius: 999px;
    color: var(--accent);
    background: rgba(15, 118, 110, 0.1);
    font-size: 0.78rem;
    font-weight: 900;
}

.compact-card h3 {
    margin: 0 0 8px;
    font-size: 1.06rem;
}

.compact-card p {
    margin: 0;
}

.contact-shell {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(300px, 0.42fr);
    gap: 18px;
    align-items: start;
}

.form-card {
    padding: 24px;
}

.form-card-heading {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    align-items: end;
    margin-bottom: 18px;
}

.form-card-heading h2 {
    margin: 0;
    font-size: clamp(1.55rem, 2.4vw, 2.25rem);
}

.form-card .login-form {
    padding: 0;
    border: 0;
    background: transparent;
}

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

.section {
    padding: 34px 0;
}

.home-section {
    padding-top: 48px;
}

.section-heading {
    max-width: 790px;
    margin-bottom: 22px;
}

.section-heading h2,
.home-band h2 {
    margin: 12px 0;
    font-size: clamp(1.85rem, 3vw, 3rem);
    line-height: 1.05;
}

.operations-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    align-items: start;
}

.operations-rail {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.operations-rail article {
    position: relative;
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr);
    column-gap: 14px;
    row-gap: 4px;
    align-items: start;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.82);
    box-shadow: var(--shadow-soft);
    transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}

.operations-rail article:hover {
    transform: translateY(-3px);
    border-color: rgba(15, 118, 110, 0.32);
    box-shadow: var(--shadow);
}

.operations-rail span {
    grid-row: 1 / span 2;
    margin-bottom: 0;
}

.operations-rail h3 {
    margin-bottom: 4px;
}

.operations-rail h3,
.portal-card h3,
.feature-card h3,
.card h3,
.section-card h3,
.contact-card h3,
.role-card h3 {
    margin: 0 0 10px;
    font-size: 1.18rem;
}

.operations-rail p,
.portal-card p,
.band-points p {
    margin: 0;
}

.operations-rail p,
.compact-card p {
    line-height: 1.55;
}

.portal-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.portal-card {
    position: relative;
    min-height: 280px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 26px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.84);
    box-shadow: var(--shadow-soft);
    transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.portal-card:hover {
    transform: translateY(-5px);
    border-color: rgba(15, 118, 110, 0.34);
    box-shadow: var(--shadow);
}

.portal-card-dark {
    color: white;
    background: linear-gradient(135deg, #111827, #115e59);
}

.portal-card-dark p {
    color: rgba(255, 255, 255, 0.74);
}

.portal-tag {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 7px 10px;
    margin-bottom: 42px;
    border-radius: 999px;
    color: var(--accent);
    background: rgba(15, 118, 110, 0.1);
    font-size: 0.78rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.12em;
}

.portal-card-dark .portal-tag {
    color: white;
    background: rgba(255, 255, 255, 0.12);
}

.portal-card a {
    margin-top: auto;
    padding-top: 28px;
    color: var(--accent);
    font-weight: 900;
}

.portal-card a::after {
    content: " ->";
}

.portal-card-dark a {
    color: white;
}

.home-band {
    margin-top: 14px;
    background: linear-gradient(135deg, #101828, #153f3c);
    color: white;
}

.band-grid {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(420px, 1.1fr);
    gap: 40px;
    align-items: start;
}

.home-band .eyebrow {
    color: rgba(255, 255, 255, 0.7);
}

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

.band-points div {
    padding: 20px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.07);
}

.band-points strong {
    display: block;
    margin-bottom: 8px;
}

.band-points p {
    color: rgba(255, 255, 255, 0.72);
}

.home-cta .eyebrow {
    color: rgba(255, 255, 255, 0.72);
}

.home-cta {
    margin-top: 42px;
}

.hero,
.strip {
    padding: 34px 0 22px;
}

.hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
    gap: 28px;
    align-items: stretch;
}

.hero-copy,
.hero-panel,
.card,
.feature-card,
.metric-card,
.section-card,
.contact-card,
.login-panel,
.cta-panel {
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface);
    box-shadow: var(--shadow-soft);
    backdrop-filter: blur(18px);
}

.hero-copy {
    padding: 34px;
}

.hero-notes,
.mini-list {
    margin-top: 28px;
    display: grid;
    gap: 12px;
}

.note-item,
.mini-item {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    padding: 14px 16px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(17, 24, 39, 0.07);
}

.note-bullet {
    width: 11px;
    height: 11px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    margin-top: 8px;
}

.hero-panel {
    padding: 24px;
    display: grid;
    gap: 18px;
    background: linear-gradient(180deg, rgba(15, 118, 110, 0.06), rgba(255, 255, 255, 0.85)), var(--surface);
}

.panel-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 14px;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border-radius: 999px;
    padding: 8px 12px;
    font-size: 0.82rem;
    font-weight: 800;
    background: rgba(15, 118, 110, 0.1);
    color: var(--accent);
}

.metric-grid,
.grid-3,
.grid-2,
.contact-grid,
.roles-grid,
.feature-grid {
    display: grid;
    gap: 18px;
}

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

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

.card,
.metric-card,
.feature-card,
.section-card,
.contact-card {
    padding: 24px;
}

.metric-card strong {
    display: block;
    font-size: 2rem;
    font-family: 'Space Grotesk', sans-serif;
}

.feature-card .icon,
.contact-card .icon,
.role-card .icon {
    width: 48px;
    height: 48px;
    border-radius: 8px;
    display: grid;
    place-items: center;
    margin-bottom: 14px;
    background: linear-gradient(135deg, rgba(15, 118, 110, 0.14), rgba(194, 65, 12, 0.16));
    color: var(--ink);
    font-weight: 900;
}

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

.strip-card {
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.72);
    padding: 16px 18px;
    font-weight: 800;
}

.cta-panel {
    padding: 34px;
    margin: 28px auto 40px;
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.98), rgba(17, 94, 89, 0.96));
    color: white;
}

.cta-panel p {
    color: rgba(255, 255, 255, 0.78);
    max-width: 760px;
}

.site-footer {
    padding: 30px 0 40px;
}

.footer-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
    gap: 20px;
    border-top: 1px solid rgba(17, 24, 39, 0.1);
    padding-top: 24px;
}

.menu-toggle {
    display: none;
    width: 46px;
    height: 46px;
    border-radius: 8px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.74);
}

.menu-toggle span {
    display: block;
    width: 18px;
    height: 2px;
    margin: 5px auto;
    background: var(--ink);
}

.login-layout {
    min-height: calc(100vh - 82px);
    display: grid;
    place-items: center;
    padding: 42px 0 50px;
}

.login-panel {
    width: min(100%, 1120px);
    padding: 24px;
}

.login-panel h1 {
    font-size: clamp(2.1rem, 3.5vw, 3.5rem);
}

.login-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(360px, 420px);
    gap: 24px;
    align-items: start;
}

.roles-grid {
    margin-top: 22px;
    gap: 12px;
}

.login-visual {
    min-height: 230px;
    margin-top: 22px;
}

.login-visual .visual-float-bottom {
    left: 16px;
    right: auto;
}

.role-card {
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.78);
    padding: 18px;
    cursor: pointer;
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.role-card:hover,
.role-card.is-active {
    transform: translateY(-2px);
    border-color: rgba(15, 118, 110, 0.45);
    box-shadow: 0 18px 34px rgba(15, 118, 110, 0.12);
}

.login-form {
    padding: 22px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.84);
    border: 1px solid var(--line);
}

.login-form label {
    display: block;
    font-size: 0.94rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.login-form input,
.login-form textarea,
.login-form select {
    width: 100%;
    border-radius: 8px;
    border: 1px solid rgba(17, 24, 39, 0.14);
    padding: 14px 16px;
    font: inherit;
    background: rgba(255, 255, 255, 0.9);
}

.login-form textarea {
    min-height: 140px;
    resize: vertical;
}

.form-stack {
    display: grid;
    gap: 16px;
}

.helper,
.flash {
    margin-top: 14px;
    padding: 14px 16px;
    border-radius: 8px;
    font-size: 0.95rem;
}

.helper {
    background: rgba(15, 118, 110, 0.08);
    color: var(--ink);
}

.flash.flash-error {
    background: rgba(220, 38, 38, 0.1);
    color: #991b1b;
}

.flash.flash-success {
    background: rgba(22, 163, 74, 0.12);
    color: #166534;
}

.list-clean {
    margin: 0;
    padding-left: 18px;
    color: var(--muted);
    line-height: 1.8;
}

[data-reveal] {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

[data-reveal].is-visible {
    opacity: 1;
    transform: translateY(0);
}

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

    [data-reveal] {
        opacity: 1;
        transform: none;
    }
}

@media (max-width: 1080px) {
    .home-hero-grid,
    .page-hero-grid,
    .operations-grid,
    .contact-shell,
    .band-grid {
        grid-template-columns: 1fr;
    }

    .home-hero-visual,
    .home-hero-visual img {
        min-height: 460px;
    }

    .page-visual {
        min-height: 420px;
    }
}

@media (max-width: 980px) {
    .hero-grid,
    .grid-2,
    .contact-grid,
    .footer-grid,
    .login-grid {
        grid-template-columns: 1fr;
    }

    .metric-grid,
    .grid-3,
    .strip-grid,
    .roles-grid,
    .feature-grid,
    .proof-strip-grid,
    .compact-card-grid,
    .operations-rail,
    .portal-grid,
    .band-points {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 760px) {
    .container {
        width: min(calc(100% - 24px), var(--container));
    }

    .menu-toggle {
        display: block;
    }

    .site-nav {
        position: absolute;
        left: 12px;
        right: 12px;
        top: 88px;
        padding: 12px;
        border-radius: 8px;
        border: 1px solid var(--line);
        background: rgba(251, 252, 248, 0.97);
        display: none;
        flex-direction: column;
        align-items: stretch;
        box-shadow: var(--shadow);
    }

    .site-nav.is-open {
        display: flex;
    }

    .site-nav a {
        text-align: center;
    }

    .home-hero {
        padding-top: 34px;
    }

    .home-hero-copy h1,
    .hero-copy h1,
    .login-panel h1 {
        font-size: clamp(2.2rem, 13vw, 3.3rem);
    }

    .page-hero-copy h1 {
        font-size: clamp(2rem, 10vw, 2.75rem);
    }

    .page-summary {
        min-height: auto;
    }

    .home-hero-visual,
    .home-hero-visual img {
        min-height: 390px;
    }

    .page-visual {
        min-height: 320px;
    }

    .login-visual {
        min-height: 210px;
    }

    .hero-status-top {
        left: 12px;
        top: 12px;
        right: 12px;
        max-width: none;
    }

    .hero-status-bottom {
        right: 12px;
        bottom: 12px;
    }

    .visual-float-top {
        left: 12px;
        right: 12px;
        top: 12px;
        max-width: none;
    }

    .visual-float-bottom,
    .login-visual .visual-float-bottom {
        left: 12px;
        right: 12px;
        bottom: 12px;
        max-width: none;
    }

    .hero-copy,
    .cta-panel,
    .login-panel,
    .portal-card {
        padding: 22px;
    }

    .hero-proof,
    .metric-grid,
    .grid-3,
    .strip-grid,
    .roles-grid,
    .feature-grid,
    .proof-strip-grid,
    .compact-card-grid,
    .operations-rail,
    .portal-grid,
    .band-points,
    .form-row {
        grid-template-columns: 1fr;
    }
}
