/* Grid Element Hub - New design (logo colors, thingspace-inspired) */
@import url("https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,400;0,9..40,500;0,9..40,600;0,9..40,700&display=swap");

:root {
  /* Logo-derived palette */
  --green-light: #73a326;
  --green-dark: #0c974b;
  --orange-light: #e68626;
  --orange-dark: #f15726;
  --blue-light: #1683c5;
  --blue-dark: #1668af;

  --text: #1a1f24;
  --text-muted: #4a5568;
  --bg: #f8fafb;
  --bg-card: #ffffff;
  --border: rgba(12, 151, 75, 0.12);
  --shadow: 0 4px 20px rgba(22, 104, 175, 0.08);
  --shadow-lg: 0 20px 48px rgba(22, 104, 175, 0.12);
  --radius: 12px;
  --radius-lg: 20px;
  --font: "DM Sans", system-ui, sans-serif;
  --max-width: 1100px;
  --nav-h: 72px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
}

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

a {
  color: var(--blue-dark);
  text-decoration: none;
}

a:hover {
  color: var(--blue-light);
  text-decoration: underline;
}

/* ========== Nav ========== */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--nav-h);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 0 1.5rem;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow 0.25s;
}

.nav .nav-logo-link {
  justify-self: start;
}

.nav-links {
  justify-self: center;
}

.nav-toggle {
  justify-self: end;
}

.nav.scrolled {
  box-shadow: var(--shadow);
}

.nav-logo-link {
  display: flex;
  align-items: center;
}

.nav-logo {
  height: 44px;
  width: auto;
}

.nav-links {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem 1.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--text);
  text-decoration: none;
  transition: color 0.2s;
}

.nav-links a:hover {
  color: var(--green-dark);
  text-decoration: none;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 0;
  background: none;
  border: none;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  transition: transform 0.2s, opacity 0.2s;
}

.nav-toggle.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav-toggle.open span:nth-child(2) {
  opacity: 0;
  visibility: hidden;
  clip-path: inset(50%);
  pointer-events: none;
  transition: none;
}
.nav-toggle.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ========== Nav dropdowns ========== */
.nav-dropdown {
  position: relative;
}

.nav-dropdown-trigger {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0;
  font-family: var(--font);
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--text);
  background: none;
  border: none;
  cursor: pointer;
  transition: color 0.2s;
}

.nav-dropdown-trigger:hover {
  color: var(--green-dark);
}

.nav-dropdown-trigger::after {
  content: "";
  display: inline-block;
  width: 0;
  height: 0;
  margin-left: 0.25rem;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid currentColor;
  vertical-align: middle;
}

@media (min-width: 769px) {
  .nav-dropdown-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(0.5rem);
    min-width: 220px;
    margin: 0;
    padding: 0.5rem 0;
    list-style: none;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s, visibility 0.2s, transform 0.2s;
    z-index: 100;
  }

  .nav-dropdown:hover .nav-dropdown-menu,
  .nav-dropdown.open .nav-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
  }
}

.nav-dropdown-menu li {
  margin: 0;
  padding: 0;
}

.nav-dropdown-menu a {
  display: block;
  padding: 0.5rem 1rem;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--text);
  text-decoration: none;
  transition: background 0.15s, color 0.15s;
}

.nav-dropdown-menu a:hover {
  background: rgba(12, 151, 75, 0.08);
  color: var(--green-dark);
  text-decoration: none;
}

/* ========== Page hero (placeholder pages) ========== */
.page-hero {
  position: relative;
  padding: calc(var(--nav-h) + 3rem) 0 2.5rem;
  overflow: hidden;
}

.page-hero-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--blue-dark) 0%, var(--green-dark) 45%, var(--orange-dark) 100%);
}

.page-hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M30 0L60 30L30 60L0 30z' fill='%23ffffff' fill-opacity='0.03' fill-rule='evenodd'/%3E%3C/svg%3E");
  opacity: 0.9;
}

.page-hero .container {
  position: relative;
  z-index: 2;
}

.page-hero h1 {
  margin: 0 0 0.5rem;
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #fff;
}

.page-hero-sub {
  margin: 0;
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.85);
}

.page-main {
  padding-bottom: 2rem;
}

/* ========== Contact page ========== */
.contact-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0;
}

.contact-card {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 2rem 1.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  text-decoration: none;
  transition: box-shadow 0.25s, border-color 0.25s;
}

.contact-card:hover {
  box-shadow: var(--shadow-lg);
  border-color: var(--green-dark);
}

.contact-card-label {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--green-dark);
}

.contact-card-value {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text);
}

.contact-card:hover .contact-card-value {
  color: var(--blue-dark);
}

.contact-note {
  margin: 2rem 0 0;
  font-size: 0.9375rem;
  color: var(--text-muted);
}

/* ========== Industry Insights – article cards ========== */
.article-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 2rem;
  margin-top: 2.5rem;
}

.article-card {
  display: block;
  background: var(--bg-card);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: box-shadow 0.25s, border-color 0.25s, transform 0.2s;
}

.article-card:hover {
  box-shadow: var(--shadow-lg);
  border-color: var(--green-dark);
  transform: translateY(-2px);
}

.article-card:hover .article-card-title {
  color: var(--blue-dark);
}

.article-card-image {
  aspect-ratio: 16/9;
  width: 100%;
  background: linear-gradient(135deg, var(--blue-dark) 0%, var(--green-dark) 50%, var(--orange-dark) 100%);
  background-size: cover;
  background-position: center;
}

.article-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.article-card-image--reliability {
  background: linear-gradient(145deg, rgba(22, 104, 175, 0.9) 0%, rgba(12, 151, 75, 0.85) 40%, rgba(26, 31, 36, 0.9) 100%);
}

.article-card-image--microgrids {
  background: linear-gradient(145deg, rgba(12, 151, 75, 0.9) 0%, rgba(22, 131, 197, 0.85) 50%, rgba(241, 87, 38, 0.2) 100%);
}

.article-card-body {
  padding: 1.5rem 1.5rem 1.75rem;
}

.article-card-title {
  margin: 0 0 0.5rem;
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.35;
  color: var(--text);
  transition: color 0.2s;
}

.article-card-author {
  margin: 0;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--green-dark);
}

/* ========== Article page (single article) ========== */
main.page-main.article-page {
  padding-top: calc(var(--nav-h) + 2rem);
  padding-bottom: 3rem;
}

.container--article {
  max-width: 720px;
}

.article-back-link {
  display: inline-block;
  margin-bottom: 1.5rem;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--blue-dark);
  text-decoration: none;
}

.article-back-link:hover {
  color: var(--blue-light);
  text-decoration: underline;
}

.article-header {
  margin-bottom: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--border);
}

.article-title {
  margin: 0 0 0.75rem;
  font-size: clamp(1.75rem, 4vw, 2.35rem);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.02em;
  color: var(--text);
}

.article-byline {
  margin: 0;
  font-size: 1rem;
  color: var(--text-muted);
}

.article-body {
  font-size: 1.0625rem;
  line-height: 1.75;
}

.article-body p {
  margin: 0 0 1.25rem;
  color: var(--text);
}

.article-body p:last-child {
  margin-bottom: 0;
}

.article-body h2 {
  margin: 2.5rem 0 1rem;
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--green-dark);
}

.article-body h2:first-child {
  margin-top: 0;
}

.article-body a {
  color: var(--blue-dark);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.article-body a:hover {
  color: var(--blue-light);
}

/* ========== Hero ========== */
.hero {
  position: relative;
  min-height: 58vh;
  display: flex;
  align-items: center;
  padding: calc(var(--nav-h) + 1.25rem) 0 2.5rem;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--blue-dark) 0%, var(--green-dark) 45%, var(--orange-dark) 100%);
}

.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M30 0L60 30L30 60L0 30z' fill='%23ffffff' fill-opacity='0.03' fill-rule='evenodd'/%3E%3C/svg%3E");
  opacity: 0.9;
}

.hero-media {
  position: absolute;
  top: 0;
  right: 0;
  width: 50%;
  max-width: 700px;
  height: 100%;
  background: linear-gradient(150deg, rgba(22, 104, 175, 0.18) 0%, rgba(12, 151, 75, 0.15) 50%, rgba(241, 87, 38, 0.12) 100%);
  clip-path: polygon(25% 0, 100% 0, 100% 100%, 0 100%);
}

.hero .container {
  position: relative;
  z-index: 2;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.hero-label {
  margin: 0 0 0.5rem;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--green-light);
}

.hero h1 {
  margin: 0 0 1.25rem;
  font-size: clamp(2.25rem, 5vw, 3.5rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: #fff;
}

.hero-sub {
  margin: 0 0 1.75rem;
  font-size: clamp(1rem, 1.8vw, 1.2rem);
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.92);
  max-width: 40em;
}

.hero-sub strong {
  color: rgba(255, 255, 255, 0.98);
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  padding: 0.875rem 1.5rem;
  font-family: var(--font);
  font-size: 1rem;
  font-weight: 600;
  color: var(--blue-dark);
  background: #fff;
  border-radius: 9999px;
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s;
}

.hero-cta:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
  color: var(--blue-dark);
  text-decoration: none;
}

/* ========== Container & sections ========== */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section {
  padding: 4rem 0;
}

.section--light {
  background: var(--bg-card);
}

.section--alt {
  background: linear-gradient(180deg, rgba(22, 131, 197, 0.04) 0%, transparent 100%);
}

.section-label {
  margin: 0 0 0.25rem;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--blue-light);
}

.section-heading {
  margin: 0 0 1.5rem;
  font-size: clamp(1.75rem, 3.5vw, 2.25rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
}

.subsection-heading {
  margin: 2rem 0 0.75rem;
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--green-dark);
}

.lead {
  font-size: 1.1rem;
  color: var(--text-muted);
  margin: 0 0 1rem;
}

.bullet-list,
.numbered-list {
  margin: 0.5rem 0 1rem;
  padding-left: 1.5rem;
  color: var(--text-muted);
}

.bullet-list li,
.numbered-list li {
  margin-bottom: 0.5rem;
}

/* ========== Challenge cards (Market Challenge) ========== */
.challenge-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.challenge-card {
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 1.5rem 1.5rem;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  transition: box-shadow 0.25s;
}

.challenge-card:hover {
  box-shadow: var(--shadow-lg);
}

.challenge-card-title {
  margin: 0 0 0.75rem;
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--green-dark);
}

.challenge-card p {
  margin: 0;
  font-size: 0.9375rem;
  line-height: 1.6;
  color: var(--text-muted);
}

/* ========== Tables ========== */
.table-wrap {
  overflow-x: auto;
  margin: 1rem 0 1.5rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9375rem;
}

.data-table th,
.data-table td {
  padding: 0.875rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

.data-table th {
  background: rgba(22, 131, 197, 0.06);
  font-weight: 600;
  color: var(--text);
}

.data-table td {
  color: var(--text-muted);
}

.data-table tbody tr:last-child td {
  border-bottom: none;
}

.data-table tbody tr:hover td {
  background: rgba(115, 163, 38, 0.04);
}

/* ========== Callouts (Path Forward & Key Takeaway) ========== */
.callout {
  margin-top: 2.5rem;
  padding: 2rem 2rem;
  border-radius: var(--radius-lg);
  border-left: 4px solid;
}

.callout--path-forward {
  background: linear-gradient(135deg, rgba(12, 151, 75, 0.1) 0%, rgba(22, 104, 175, 0.06) 100%);
  border-left-color: var(--green-dark);
}

.callout--investors {
  background: linear-gradient(135deg, rgba(241, 87, 38, 0.08) 0%, rgba(230, 134, 38, 0.06) 100%);
  border-left-color: var(--orange-dark);
}

.callout--use-case {
  background: linear-gradient(135deg, rgba(22, 131, 197, 0.08) 0%, rgba(22, 104, 175, 0.06) 100%);
  border-left-color: var(--blue-dark);
}

.callout-title {
  margin: 0 0 0.75rem;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text);
}

.callout p {
  margin: 0 0 0.75rem;
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--text-muted);
}

.callout p:last-child {
  margin-bottom: 0;
}

/* ========== Tier cards (Competitive) ========== */
.tier-cards {
  display: grid;
  gap: 1.5rem;
  margin: 1.5rem 0;
}

.tier-card {
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 1.5rem 1.75rem;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  transition: box-shadow 0.25s;
}

.tier-card:hover {
  box-shadow: var(--shadow-lg);
}

.tier-title {
  margin: 0 0 0.75rem;
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--blue-dark);
}

.tier-card .bullet-list {
  margin-bottom: 0;
}

/* ========== Section graphics (full image, no crop – preserve aspect ratio) ========== */
.section-graphic {
  margin: 1.5rem 0 2rem;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}

.section-graphic img {
  width: 100%;
  height: auto;
  display: block;
  vertical-align: middle;
}

/* ========== Image placeholder ========== */
.img-placeholder {
  aspect-ratio: 16/9;
  max-width: 640px;
  border-radius: var(--radius);
  background: linear-gradient(145deg, rgba(22, 131, 197, 0.08) 0%, rgba(12, 151, 75, 0.06) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--text-muted);
  letter-spacing: 0.04em;
  border: 2px dashed var(--border);
  margin: 1rem 0;
}

/* ========== About ========== */
.about-grid {
  display: grid;
  gap: 2.5rem;
}

.about-card {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 2rem;
  align-items: start;
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 2rem;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.about-card-media .img-placeholder {
  aspect-ratio: 1;
  margin: 0;
}

.about-card-media .about-card-img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  object-position: top center;
  border-radius: var(--radius);
}

.about-name {
  margin: 0 0 0.25rem;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text);
}

.about-role {
  margin: 0 0 0.75rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--green-dark);
}

.about-card-body p {
  margin: 0 0 0.75rem;
  font-size: 0.9375rem;
  color: var(--text-muted);
  line-height: 1.65;
}

.about-card-body p:last-child {
  margin-bottom: 0;
}

.executive-quote {
  margin: 0.75rem 0 1rem;
  padding-left: 1rem;
  font-size: 1rem;
  font-style: italic;
  color: var(--green-dark);
  border-left: 3px solid var(--green-dark);
}

.about-card-body .subsection-heading {
  margin-top: 1.25rem;
}

/* ========== Footer ========== */
.footer {
  position: relative;
  padding: 2rem 1.5rem;
  background: linear-gradient(135deg, var(--blue-dark) 0%, var(--green-dark) 50%, var(--orange-dark) 100%);
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.9375rem;
  overflow: hidden;
}

.footer::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M30 0L60 30L30 60L0 30z' fill='%23ffffff' fill-opacity='0.03' fill-rule='evenodd'/%3E%3C/svg%3E");
  opacity: 0.9;
  pointer-events: none;
}

.footer .container {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 1rem 2rem;
}

.footer-brand {
  justify-self: start;
  font-weight: 700;
  font-size: 1rem;
  color: #fff;
}

.footer-contact {
  justify-self: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
}

.footer-contact-label {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.75);
}

.footer-contact-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1.25rem;
}

.footer-contact a {
  color: rgba(255, 255, 255, 0.95);
  text-decoration: none;
}

.footer-contact a:hover {
  color: #fff;
  text-decoration: underline;
}

.footer a {
  color: rgba(255, 255, 255, 0.9);
}

.footer a:hover {
  color: #fff;
  text-decoration: underline;
}

.footer-social {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.footer-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
  transition: color 0.2s, transform 0.2s;
}

.footer-social a:hover {
  color: #fff;
  text-decoration: none;
  transform: translateY(-2px);
}

.footer-social svg {
  display: block;
}

/* ========== Scroll reveal ========== */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ========== Mobile ========== */
@media (max-width: 900px) {
  .about-card {
    grid-template-columns: 1fr;
  }

  .about-card-media .img-placeholder {
    aspect-ratio: 4/5;
    max-width: 100%;
  }

  .about-card-media .about-card-img {
    aspect-ratio: 4/5;
  }
}

@media (max-width: 768px) {
  .challenge-cards {
    grid-template-columns: 1fr;
  }

  /* Mobile nav bar: solid background (no blur), avoid shift, clip so panel shadow doesn't show as "dots" beside toggle */
  .nav {
    background: #fff;
    backdrop-filter: none;
    padding-left: 1rem;
    padding-right: 1rem;
    overflow: hidden;
  }

  .nav-links {
    position: fixed;
    top: var(--nav-h);
    left: 0;
    right: 0;
    width: 100%;
    max-width: 100vw;
    max-height: calc(100vh - var(--nav-h));
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    display: flex;
    flex-direction: column;
    flex-wrap: nowrap;
    align-items: stretch;
    gap: 0;
    padding: 1rem;
    padding-bottom: 2rem;
    background: #fff;
    backdrop-filter: none;
    border-bottom: 1px solid var(--border);
    transform: translateY(-100%);
    visibility: hidden;
    transition: transform 0.25s, visibility 0.25s;
    box-shadow: none;
    box-sizing: border-box;
    z-index: 999;
  }

  .nav-links.open {
    transform: translateY(0);
    visibility: visible;
  }

  body.nav-menu-open {
    overflow: hidden;
    position: fixed;
    width: 100%;
    left: 0;
    right: 0;
  }

  .nav-links li {
    flex: 0 0 auto;
    width: 100%;
    min-width: 0;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border);
  }

  .nav-links li:last-child {
    border-bottom: none;
  }

  .nav-dropdown {
    display: flex;
    flex-direction: column;
    flex-wrap: nowrap;
    align-items: stretch;
    width: 100%;
    min-width: 0;
  }

  .nav-dropdown-trigger {
    justify-content: space-between;
    width: 100%;
    text-align: left;
    padding: 0.75rem 0;
  }

  .nav-dropdown-trigger::after {
    transform: rotate(0deg);
    transition: transform 0.2s;
  }

  .nav-dropdown.open .nav-dropdown-trigger::after {
    transform: rotate(180deg);
  }

  .nav-dropdown-menu {
    position: static;
    left: auto;
    transform: none;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    max-height: 0;
    overflow: hidden;
    margin: 0 0 0 1rem;
    padding: 0;
    border: none;
    border-radius: 0;
    box-shadow: none;
    background: transparent;
    opacity: 1;
    visibility: visible;
    transition: max-height 0.25s ease-out;
    transition-property: max-height;
    list-style: none;
  }

  .nav-dropdown.open .nav-dropdown-menu,
  .nav-dropdown .nav-dropdown-menu {
    transform: none;
    left: auto;
  }

  .nav-dropdown.open .nav-dropdown-menu {
    max-height: 500px;
    padding: 0.25rem 0 0.5rem;
  }

  .nav-dropdown-menu a {
    display: block;
    width: 100%;
    box-sizing: border-box;
    padding: 0.5rem 0;
    font-size: 0.9rem;
    color: var(--text-muted);
  }

  .nav-dropdown-menu a:hover {
    background: transparent;
  }

  .nav-toggle {
    display: flex;
  }

  .hero-media {
    width: 100%;
    clip-path: polygon(0 0, 100% 0, 100% 70%, 0 100%);
    opacity: 0.7;
  }

  .hero {
    min-height: 55vh;
  }

  .data-table th,
  .data-table td {
    padding: 0.65rem 0.75rem;
    font-size: 0.875rem;
  }

  .callout {
    padding: 1.5rem 1.25rem;
  }

  /* Footer: mobile – contact only, centered, phone + email on one line */
  .footer .container {
    grid-template-columns: 1fr;
    justify-items: center;
  }

  .footer-brand {
    display: none;
  }

  .footer-contact {
    justify-self: center;
  }

  .footer-contact-links {
    flex-wrap: nowrap;
    justify-content: center;
  }

  .footer-social {
    justify-self: center;
    gap: 2.25rem;
  }
}
