﻿@media (max-width: 1200px) {
  .hero-layout,
  .page-hero-shell,
  .detail-grid,
  .contact-grid,
  .article-shell {
    grid-template-columns: 1fr;
  }

  .hero h1,
  .page-hero h1 {
    max-width: none;
  }

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

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

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

@media (max-width: 992px) {
  :root {
    --header-height: 76px;
    --container: min(100% - 32px, 1000px);
  }

  .nav-toggle {
    display: inline-flex;
  }

  .site-nav {
    position: absolute;
    top: calc(100% + 10px);
    left: 16px;
    right: 16px;
    padding: 16px;
    display: grid;
    gap: 6px;
    border-radius: 24px;
    background: rgba(6, 17, 31, 0.96);
    border: 1px solid rgba(111, 180, 255, 0.14);
    box-shadow: 0 24px 54px rgba(0, 0, 0, 0.32);
    transform-origin: top;
    transform: scaleY(0);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.24s ease, opacity 0.24s ease;
  }

  .site-nav.is-open {
    transform: scaleY(1);
    opacity: 1;
    pointer-events: auto;
  }

  .site-nav a,
  .site-nav .nav-cta {
    padding: 14px 16px;
    border-radius: 16px;
  }

  .site-nav a::after {
    display: none;
  }

  .metric-strip,
  .grid-3,
  .grid-4,
  .field-grid {
    grid-template-columns: 1fr;
  }

  .cta-panel {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: 68px;
  }

  .hero-visual {
    order: -1;
  }
}

@media (max-width: 768px) {
  .section {
    padding: 42px 0;
  }

  .hero,
  .page-hero {
    padding: 58px 0 34px;
  }

  .hero-visual {
    min-height: 360px;
    padding: 20px;
  }

  .hero-core {
    width: 78%;
  }

  .hero-core-center {
    width: 150px;
    height: 150px;
    margin: -75px 0 0 -75px;
  }

  .node-card {
    width: 148px;
    padding: 14px;
  }

  .node-top {
    top: 18px;
    right: 18px;
  }

  .node-left {
    left: 14px;
    top: 124px;
  }

  .node-right {
    right: 14px;
    bottom: 104px;
  }

  .node-bottom {
    left: 20px;
    bottom: 18px;
  }

  .grid-2,
  .timeline,
  .article-nav,
  .footer-grid,
  .contact-grid,
  .detail-grid,
  .article-shell {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 576px) {
  :root {
    --container: calc(100% - 24px);
  }

  .brand img {
    width: 44px;
    height: 44px;
  }

  .brand-text strong {
    font-size: 0.96rem;
  }

  .brand-text span {
    font-size: 0.68rem;
    letter-spacing: 0.14em;
  }

  .hero h1 {
    font-size: 2.28rem;
  }

  .page-hero h1 {
    font-size: 2rem;
  }

  .lead {
    font-size: 1rem;
  }

  .btn {
    width: 100%;
  }

  .hero-actions {
    flex-direction: column;
  }

  .metric-strip {
    gap: 12px;
  }

  .hero-core-center strong {
    font-size: 1.05rem;
  }
}

@media (max-width: 992px) {
  .hero-visual {
    display: none;
  }

  .brand-text strong {
    max-width: 20ch;
    font-size: 0.88rem;
  }
}

@media (max-width: 576px) {
  .brand-text span {
    display: none;
  }

  .hero h1 {
    font-size: 2rem;
  }

  .page-hero h1 {
    font-size: 1.82rem;
  }

  .section-title,
  .page-hero h1 {
    max-width: none;
  }
}


@media (max-width: 992px) {
  .nav-item-dropdown {
    display: grid;
    gap: 4px;
  }

  .nav-submenu {
    position: static;
    min-width: 0;
    padding: 4px 0 0 14px;
    border: none;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    opacity: 1;
    transform: none;
    pointer-events: auto;
  }

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

@media (max-width: 768px) {
  .hero,
  .page-hero {
    padding: 48px 0 22px;
  }

  .section {
    padding: 36px 0;
  }

  .content-single {
    max-width: none;
  }
}

@media (max-width: 576px) {
  .footer-grid--compact,
  .footer-bottom {
    grid-template-columns: 1fr;
  }

  .footer-bottom {
    justify-content: flex-start;
  }

  .footer-legal-links {
    gap: 10px 14px;
  }

  .archive-item {
    padding: 20px;
  }

  .archive-item h2 {
    font-size: 1.18rem;
  }
}

@media (max-width: 576px) {
  .footer-grid--compact {
    grid-template-columns: 1fr;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
  }
}

@media (max-width: 992px) {
  .footer-grid--compact {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: start;
  }

  .footer-qr {
    justify-self: start;
  }

  .page-news-detail .page-hero h1 {
    white-space: normal;
  }
}

@media (max-width: 768px) {
  .page-news-detail .page-hero-shell > div {
    text-align: left;
  }

  .page-news-detail .article-meta-line {
    justify-content: flex-start;
    margin-top: 14px;
  }
}

@media (max-width: 992px) {
  .nav-submenu {
    padding: 0 0 0 14px;
    opacity: 0;
    max-height: 0;
    overflow: hidden;
    pointer-events: none;
  }

  .nav-item-dropdown.is-open .nav-submenu {
    padding: 4px 0 0 14px;
    opacity: 1;
    max-height: 240px;
    pointer-events: auto;
  }
}

@media (max-width: 768px) {
  .page-case-detail .page-hero-shell > div {
    text-align: left;
  }

  .page-case-detail .article-meta-line {
    justify-content: flex-start;
    margin-top: 14px;
  }
}

@media (max-width: 992px) {
  .section-copy {
    flex: 1 1 100%;
    max-width: none;
    margin-left: 0;
  }
}

@media (max-width: 576px) {
  .brand-text strong {
    font-size: 0.98rem;
  }

  .site-nav a {
    font-size: 0.98rem;
  }

  .section-copy {
    padding: 16px 18px;
  }
}

@media (max-width: 992px) {
  .nav-item-dropdown > a {
    width: 100%;
    justify-content: space-between;
  }

  .nav-item-dropdown::after {
    display: none;
  }
}

@media (max-width: 768px) {
  .section-title {
    max-width: 100%;
    font-size: clamp(1.5rem, 7.4vw, 2rem);
    word-break: normal;
    overflow-wrap: anywhere;
    white-space: normal;
  }

  .page-news-detail .page-hero h1,
  .page-case-detail .page-hero h1 {
    max-width: 100%;
    font-size: clamp(1.62rem, 7vw, 2rem);
    white-space: normal;
    word-break: normal;
    overflow-wrap: anywhere;
    line-height: 1.24;
  }

  .footer-panel {
    padding: 18px 16px;
  }

  .footer-grid--compact {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .footer-grid--compact > div {
    width: 100%;
  }

  .footer-brand {
    align-items: flex-start;
  }

  .footer-qr {
    justify-self: center;
    text-align: center;
    margin-top: 4px;
  }

  .footer-qr img {
    width: 156px;
  }

  .footer-bottom {
    padding-top: 4px;
    gap: 14px;
  }

  .footer-legal-links {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
    gap: 10px 16px;
  }

  .footer-legal-links a {
    display: block;
  }
}

@media (max-width: 576px) {
  .brand-text strong {
    max-width: 12ch;
    font-size: 0.92rem;
    line-height: 1.14;
  }

  .brand-text span {
    display: none;
  }

  .footer-legal-links {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .header-shell {
    gap: 12px;
  }

  .brand {
    flex: 1 1 auto;
    gap: 10px;
  }

  .brand img {
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
  }

  .brand-text {
    min-width: 0;
  }

  .brand-text strong {
    max-width: 14ch;
    font-size: 0.9rem;
    line-height: 1.14;
    white-space: normal;
    word-break: keep-all;
    overflow-wrap: normal;
  }

  .nav-toggle {
    width: 44px;
    height: 44px;
    flex: 0 0 44px;
  }

  .section-title {
    padding-right: 0.08em;
  }

  .page-news-detail .page-hero h1,
  .page-case-detail .page-hero h1 {
    white-space: normal !important;
    word-break: normal;
    overflow-wrap: anywhere;
  }

  .footer-grid--compact {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px 18px;
    align-items: start;
  }

  .footer-grid--compact > :first-child {
    grid-column: 1 / -1;
  }

  .footer-grid--compact > :nth-child(2) {
    grid-column: 1;
  }

  .footer-grid--compact > :nth-child(3) {
    grid-column: 2;
  }

  .footer-grid--compact > :nth-child(4) {
    grid-column: 1 / -1;
    justify-self: center;
    width: auto;
    margin-top: 2px;
  }

  .footer-panel p {
    font-size: 0.96rem;
  }

  .footer-panel h4 {
    font-size: 1.04rem;
  }

  .footer-legal-links {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
    gap: 10px 14px;
  }

  .footer-legal-links a {
    display: block;
  }

  .cta-panel .btn,
  .hero-actions .btn {
    width: 100%;
  }
}

@media (max-width: 576px) {
  .brand-text strong {
    max-width: 13ch;
    font-size: 0.84rem;
  }

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

  .footer-qr img {
    width: 148px;
  }
}

@media (max-width: 768px) {
  .brand {
    max-width: calc(100% - 56px);
  }

  .brand-text strong {
    max-width: none;
    font-size: clamp(0.72rem, 2.5vw, 0.82rem);
    line-height: 1.12;
    white-space: nowrap;
    letter-spacing: 0;
  }

  .brand-text span {
    display: block;
    margin-top: 2px;
    font-size: clamp(0.45rem, 1.8vw, 0.56rem);
    line-height: 1.05;
    letter-spacing: 0.12em;
    white-space: nowrap;
  }

  .cta-panel {
    padding: 20px 16px;
    overflow: hidden;
  }

  .cta-panel > div {
    min-width: 0;
    width: 100%;
  }

  .cta-panel h2,
  .cta-panel p,
  .cta-panel .eyebrow {
    max-width: 100%;
    white-space: normal;
    word-break: normal;
    overflow-wrap: anywhere;
  }

  .cta-panel .btn {
    min-width: 0;
    width: 100%;
    padding-left: 16px;
    padding-right: 16px;
    font-size: 1rem;
  }
}

@media (max-width: 576px) {
  .brand {
    max-width: calc(100% - 52px);
    gap: 8px;
  }

  .brand img {
    width: 40px;
    height: 40px;
    flex: 0 0 40px;
  }

  .brand-text strong {
    font-size: 0.74rem;
  }

  .brand-text span {
    display: block;
    font-size: 0.46rem;
  }

  .footer-grid--compact > :nth-child(4) {
    margin-top: 0;
  }
}

@media (max-width: 768px) {
  .brand,
  .footer-brand {
    align-items: center;
  }

  .brand-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
  }

  .brand-text strong {
    font-size: clamp(0.78rem, 2.7vw, 0.9rem);
    line-height: 1.16;
  }

  .brand-text span {
    font-size: clamp(0.5rem, 1.9vw, 0.6rem);
    line-height: 1.08;
  }

  .footer-brand {
    gap: 10px;
  }
}

@media (max-width: 576px) {
  .brand-text strong {
    font-size: 0.8rem;
  }

  .brand-text span {
    font-size: 0.5rem;
  }
}

/* Release polish: mobile header, titles, CTA and footer */
@media (max-width: 992px) {
  .site-header {
    background: rgba(4, 11, 20, 0.94);
  }

  .header-shell {
    min-height: 72px;
    gap: 12px;
    align-items: center;
  }

  .brand {
    max-width: calc(100% - 60px);
    gap: 10px;
    align-items: center;
  }

  .brand img {
    width: 44px;
    height: 44px;
    flex: 0 0 44px;
  }

  .brand-text {
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }

  .brand-text strong {
    max-width: none;
    font-size: clamp(0.86rem, 2.4vw, 1rem);
    line-height: 1.16;
    white-space: nowrap;
    letter-spacing: 0;
  }

  .brand-text span {
    display: block;
    font-size: clamp(0.5rem, 1.45vw, 0.64rem);
    letter-spacing: 0.12em;
    line-height: 1.1;
    white-space: nowrap;
  }

  .nav-toggle {
    width: 46px;
    height: 46px;
    flex: 0 0 46px;
  }

  .site-nav {
    padding: 16px;
    border-radius: 26px;
    gap: 10px;
  }

  .site-nav a,
  .site-nav .nav-cta {
    min-height: 44px;
    font-size: 1rem;
  }

  .nav-item-dropdown {
    display: grid;
    gap: 6px;
    padding-bottom: 0;
    margin-bottom: 0;
  }

  .nav-item-dropdown > a {
    width: 100%;
    justify-content: space-between;
    padding-right: 16px;
  }

  .page-hero {
    padding: 46px 0 22px;
  }

  .page-hero-shell {
    gap: 22px;
  }

  .hero h1 {
    font-size: clamp(2rem, 6.4vw, 2.5rem);
    max-width: 100%;
    line-height: 1.16;
  }

  .page-hero h1 {
    font-size: clamp(1.76rem, 6vw, 2.22rem);
    max-width: 100%;
    line-height: 1.18;
    white-space: normal !important;
    word-break: normal;
    overflow-wrap: anywhere;
  }

  .section-title {
    max-width: 100%;
    font-size: clamp(1.52rem, 5.4vw, 2rem);
    line-height: 1.18;
    padding-right: 0.12em;
    white-space: normal;
    word-break: normal;
    overflow-wrap: anywhere;
  }

  .section-head {
    gap: 16px;
  }

  .section-head > div,
  .section-copy {
    max-width: none;
  }

  .section-copy {
    width: 100%;
    padding: 18px 18px;
    margin-left: 0;
  }

  .hero-actions {
    gap: 12px;
  }

  .hero-actions .btn,
  .cta-panel .btn {
    width: 100%;
    min-width: 0;
  }

  .cta-panel {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .cta-panel > div {
    width: 100%;
  }

  .cta-panel h2,
  .cta-panel p,
  .cta-panel .eyebrow {
    max-width: 100%;
    white-space: normal;
    word-break: normal;
    overflow-wrap: anywhere;
  }

  .cta-panel .btn {
    padding-left: 18px;
    padding-right: 18px;
    justify-self: stretch;
  }

  .article-meta-line {
    gap: 8px 12px;
    font-size: 0.92rem;
  }

  .footer-panel {
    padding: 20px 18px;
  }

  .footer-grid--compact {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px 16px;
    align-items: start;
  }

  .footer-grid--compact > :first-child {
    grid-column: 1 / -1;
  }

  .footer-grid--compact > :nth-child(2) {
    grid-column: 1;
  }

  .footer-grid--compact > :nth-child(3) {
    grid-column: 2;
  }

  .footer-grid--compact > :nth-child(4) {
    grid-column: 1 / -1;
    justify-self: center;
    width: auto;
    margin-top: 4px;
  }

  .footer-brand {
    align-items: center;
    gap: 12px;
  }

  .footer-brand img {
    width: 48px;
    height: 48px;
    flex: 0 0 48px;
  }

  .footer-brand .brand-text strong {
    font-size: clamp(0.92rem, 2.6vw, 1.04rem);
  }

  .footer-brand .brand-text span {
    font-size: clamp(0.56rem, 1.6vw, 0.7rem);
  }

  .footer-panel p {
    font-size: 0.98rem;
    line-height: 1.78;
  }

  .footer-panel h4 {
    font-size: 1.16rem;
  }

  .footer-panel ul {
    gap: 12px;
  }

  .footer-qr {
    gap: 10px;
  }

  .footer-qr img {
    width: 156px;
  }

  .footer-bottom {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
    justify-items: start;
  }

  .footer-legal-links {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px 14px;
  }

  .footer-legal-links a {
    display: block;
  }
}

@media (max-width: 576px) {
  .brand-text strong {
    font-size: 0.84rem;
  }

  .brand-text span {
    font-size: 0.52rem;
  }

  .footer-brand .brand-text strong {
    font-size: 0.94rem;
  }

  .footer-brand .brand-text span {
    font-size: 0.58rem;
  }

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

@media (max-width: 992px) {
  .nav-item-dropdown {
    width: 100%;
  }

  .nav-item-dropdown > a {
    position: relative;
    width: 100%;
    justify-content: center;
    text-align: center;
    padding-left: 16px;
    padding-right: 16px;
  }

  .nav-item-dropdown > a::before {
    position: absolute;
    right: 18px;
    top: 50%;
    margin: 0;
    order: initial;
    transform: translateY(-55%) rotate(45deg);
  }

  .nav-item-dropdown.is-open > a::before {
    transform: translateY(-30%) rotate(225deg);
  }
}
