:root {
  --navy: #071a33;
  --ink: #0d1624;
  --muted: #667085;
  --gold: #d8a735;
  --gold-soft: #ffe6a2;
  --line: #dbe3ee;
  --paper: #f7f9fc;
  --white: #ffffff;
  --shadow: 0 18px 50px rgba(7, 26, 51, .12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px clamp(18px, 4vw, 64px);
  background: rgba(255, 255, 255, .92);
  border-bottom: 1px solid rgba(219, 227, 238, .9);
  backdrop-filter: blur(16px);
}

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

.brand img {
  width: 54px;
  height: 54px;
  border-radius: 12px;
  object-fit: cover;
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  font-size: 1rem;
  letter-spacing: .02em;
}

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

.site-header nav {
  display: flex;
  align-items: center;
  gap: 22px;
  color: #314056;
  font-size: .95rem;
  font-weight: 700;
}

.nav-pill,
.button {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 11px 18px;
  font-weight: 800;
}

.text-link {
  display: inline-flex;
  margin-top: 14px;
  color: #9b6d0c;
  font-weight: 900;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.nav-pill,
.button.primary {
  color: #101828;
  background: linear-gradient(135deg, #f6ca55, var(--gold));
  border-color: transparent;
  box-shadow: 0 12px 24px rgba(216, 167, 53, .22);
}

.button.ghost {
  color: var(--navy);
  background: rgba(255, 255, 255, .72);
}

.nav-toggle {
  display: none;
  border: 0;
  border-radius: 999px;
  padding: 10px 14px;
  background: var(--navy);
  color: var(--white);
  font-weight: 800;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, .8fr);
  gap: clamp(28px, 5vw, 70px);
  align-items: center;
  min-height: calc(100vh - 83px);
  padding: clamp(44px, 7vw, 96px) clamp(18px, 5vw, 84px);
  background:
    radial-gradient(circle at 74% 14%, rgba(216, 167, 53, .28), transparent 28%),
    linear-gradient(135deg, #071a33 0%, #0b2242 52%, #101828 100%);
  color: var(--white);
  overflow: hidden;
}

.hero h1 {
  max-width: 900px;
  margin: 0;
  font-size: clamp(2.45rem, 7vw, 5.9rem);
  line-height: .95;
  letter-spacing: 0;
}

.hero p {
  max-width: 690px;
  color: rgba(255, 255, 255, .78);
  font-size: 1.12rem;
  line-height: 1.7;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--gold);
  font-size: .78rem;
  font-weight: 900;
  letter-spacing: .16em;
  text-transform: uppercase;
}

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

.hero-panel {
  position: relative;
  padding: clamp(24px, 4vw, 38px);
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 8px;
  background: rgba(255, 255, 255, .08);
  box-shadow: 0 24px 80px rgba(0, 0, 0, .22);
}

.hero-panel img {
  width: min(100%, 360px);
  margin: 0 auto 22px;
  border-radius: 8px;
}

.hero-panel p {
  margin: 0 0 22px;
  color: var(--gold-soft);
  text-align: center;
  font-size: 1.4rem;
  font-weight: 900;
}

.status-strip {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.status-strip span {
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 8px;
  background: rgba(255, 255, 255, .08);
  text-align: center;
  font-weight: 800;
}

.stats-band {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
}

.stats-band div {
  padding: 28px clamp(18px, 5vw, 64px);
  background: var(--white);
}

.stats-band strong {
  display: block;
  color: var(--navy);
  font-size: clamp(2rem, 4vw, 3.4rem);
}

.stats-band span {
  color: var(--muted);
  font-weight: 800;
}

.section {
  padding: clamp(56px, 8vw, 104px) clamp(18px, 5vw, 84px);
}

.split {
  display: grid;
  grid-template-columns: minmax(260px, .75fr) minmax(0, 1.25fr);
  gap: clamp(28px, 5vw, 64px);
}

.section h2,
.visual-band h2,
.login-brand h1,
.dashboard h1,
.admin-top h1 {
  margin: 0 0 16px;
  color: var(--navy);
  font-size: clamp(2rem, 4vw, 3.5rem);
  line-height: 1.02;
}

.section p,
.visual-band p,
.login-brand p {
  color: var(--muted);
  line-height: 1.7;
}

.service-grid,
.job-grid,
.cert-grid,
.project-grid,
.about-grid,
.process-grid,
.strength-grid,
.supply-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.service-card,
.job-card,
.announcement-list article,
.timeline article,
.cert-grid article,
.project-card,
.about-grid article,
.process-grid article,
.strength-grid article,
.supply-columns article,
.auth-card,
.admin-section {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.service-card,
.job-card,
.announcement-list article,
.timeline article,
.cert-grid article,
.project-card,
.about-grid article,
.process-grid article,
.strength-grid article,
.supply-columns article {
  padding: 24px;
}

.service-card h3,
.job-card h3,
.announcement-list h3,
.timeline h3,
.about-grid h3,
.process-grid h3,
.strength-grid h3,
.supply-columns h3 {
  margin: 0 0 10px;
  color: var(--navy);
}

.about-section {
  background: linear-gradient(180deg, var(--white), var(--paper));
}

.about-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 22px;
}

.process-section {
  background: var(--navy);
  color: var(--white);
}

.process-section h2,
.process-section h3 {
  color: var(--white);
}

.process-grid {
  grid-template-columns: repeat(7, minmax(150px, 1fr));
  margin-top: 26px;
  overflow-x: auto;
  padding-bottom: 10px;
}

.process-grid article {
  min-width: 150px;
  border-color: rgba(255, 255, 255, .14);
  background: rgba(255, 255, 255, .07);
  box-shadow: none;
}

.process-grid span {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  margin-bottom: 16px;
  border-radius: 50%;
  background: var(--gold);
  color: #111827;
  font-weight: 900;
}

.process-grid p,
.process-section .section-heading p {
  color: rgba(255, 255, 255, .72);
}

.supply-section {
  display: grid;
  grid-template-columns: minmax(260px, .85fr) minmax(0, 1.15fr);
  gap: clamp(28px, 5vw, 64px);
  align-items: start;
  background:
    radial-gradient(circle at top right, rgba(216, 167, 53, .18), transparent 28%),
    var(--white);
}

.supply-columns ul {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.supply-columns li,
.benefit-strip span {
  position: relative;
  padding-left: 24px;
  color: #314056;
  font-weight: 800;
  line-height: 1.45;
}

.supply-columns li::before,
.benefit-strip span::before {
  content: "";
  position: absolute;
  left: 0;
  top: .55em;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--gold);
}

.strength-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 24px;
}

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

.benefit-strip span {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px 14px 14px 34px;
  background: var(--white);
}

.announcement-section {
  background: var(--white);
}

.announcement-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 24px;
}

.announcement-list span,
.job-card span,
.project-head span {
  display: inline-flex;
  margin-bottom: 12px;
  border-radius: 999px;
  padding: 7px 10px;
  background: rgba(216, 167, 53, .15);
  color: #8a6310;
  font-size: .78rem;
  font-weight: 900;
}

.job-card dl {
  display: grid;
  gap: 12px;
  margin: 20px 0 0;
}

.job-card dt {
  color: var(--muted);
  font-size: .8rem;
  font-weight: 900;
  text-transform: uppercase;
}

.job-card dd {
  margin: 3px 0 0;
  font-weight: 800;
}

.visual-band {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
  padding: clamp(44px, 7vw, 84px) clamp(18px, 5vw, 84px);
  background: var(--navy);
  color: var(--white);
}

.visual-band img {
  border-radius: 8px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, .28);
}

.visual-band h2 {
  color: var(--white);
}

.highlight-list {
  display: grid;
  gap: 12px;
  margin: 26px 0 0;
  padding: 0;
  list-style: none;
}

.highlight-list li {
  padding: 14px 16px;
  border-left: 4px solid var(--gold);
  background: var(--white);
  font-weight: 800;
}

.timeline {
  display: grid;
  gap: 16px;
}

.cert-grid article strong,
.cert-grid article span {
  display: block;
}

.cert-grid article strong {
  margin-bottom: 8px;
  color: var(--navy);
  font-size: 1.15rem;
}

.cert-grid article span {
  color: var(--muted);
}

.site-footer {
  display: grid;
  grid-template-columns: minmax(260px, .8fr) minmax(280px, 1.2fr);
  gap: 28px;
  padding: 42px clamp(18px, 5vw, 84px);
  background: #050f1f;
  color: var(--white);
}

.site-footer img {
  width: 82px;
  border-radius: 8px;
}

.site-footer address {
  display: grid;
  gap: 10px;
  color: rgba(255, 255, 255, .76);
  font-style: normal;
}

.portal-body,
.admin-body {
  min-height: 100vh;
  background:
    radial-gradient(circle at top right, rgba(216, 167, 53, .18), transparent 28%),
    var(--paper);
}

.portal-shell {
  display: grid;
  grid-template-columns: minmax(280px, .8fr) minmax(320px, 1.2fr);
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
  min-height: 100vh;
  padding: clamp(24px, 5vw, 70px);
}

.auth-card {
  padding: clamp(24px, 4vw, 36px);
}

.auth-card label,
.admin-form label {
  display: grid;
  gap: 8px;
  color: #314056;
  font-weight: 800;
}

input,
textarea,
select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px 13px;
  background: var(--white);
  color: var(--ink);
  font: inherit;
}

textarea {
  min-height: 104px;
  resize: vertical;
}

.auth-card form,
.auth-card,
.admin-form {
  display: grid;
  gap: 16px;
}

.demo-note {
  color: var(--muted);
  font-size: .88rem;
  line-height: 1.6;
}

.alert {
  border-radius: 8px;
  padding: 13px 15px;
  font-weight: 800;
}

.alert.error {
  background: #fee4e2;
  color: #912018;
}

.alert.success {
  background: #dcfae6;
  color: #085d3a;
}

.dashboard {
  grid-column: 1 / -1;
}

.dashboard-top,
.project-head,
.admin-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.dashboard-actions {
  display: flex;
  gap: 10px;
}

.project-card {
  display: grid;
  gap: 14px;
}

.progress {
  height: 11px;
  overflow: hidden;
  border-radius: 999px;
  background: #e8eef6;
}

.progress span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--gold), #2fb344);
}

.report-box {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
}

.admin-body {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
}

.admin-sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  padding: 20px;
  background: #050f1f;
  color: var(--white);
}

.admin-sidebar nav {
  display: grid;
  gap: 8px;
  margin-top: 26px;
}

.admin-sidebar nav a {
  border-radius: 8px;
  padding: 11px 12px;
  color: rgba(255, 255, 255, .78);
  font-weight: 800;
}

.admin-sidebar nav a:hover {
  background: rgba(255, 255, 255, .08);
  color: var(--white);
}

.admin-main {
  display: grid;
  gap: 22px;
  padding: clamp(18px, 4vw, 42px);
}

.admin-section {
  padding: clamp(18px, 3vw, 28px);
}

.admin-section h2 {
  margin: 0 0 18px;
  color: var(--navy);
}

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

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

.repeater {
  display: grid;
  gap: 14px;
}

.repeat-row {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
}

.repeat-row.two {
  grid-template-columns: 180px 1fr;
}

.repeat-row.three,
.users-row {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.users-row {
  grid-template-columns: 120px repeat(4, minmax(0, 1fr));
}

@media (max-width: 980px) {
  .hero,
  .split,
  .visual-band,
  .portal-shell,
  .site-footer,
  .admin-body {
    grid-template-columns: 1fr;
  }

  .admin-sidebar {
    position: static;
    height: auto;
  }

  .admin-sidebar nav {
    grid-template-columns: repeat(2, 1fr);
  }

  .service-grid,
  .job-grid,
  .announcement-list,
  .cert-grid,
  .project-grid,
  .about-grid,
  .strength-grid,
  .supply-section,
  .supply-columns,
  .benefit-strip,
  .form-grid,
  .form-grid.compact,
  .repeat-row.two,
  .repeat-row.three,
  .users-row {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .site-header {
    align-items: flex-start;
  }

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

  .site-header nav {
    position: absolute;
    top: 78px;
    right: 18px;
    left: 18px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--white);
    box-shadow: var(--shadow);
  }

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

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

  .stats-band {
    grid-template-columns: 1fr;
  }

  .dashboard-top,
  .project-head,
  .admin-top {
    align-items: flex-start;
    flex-direction: column;
  }
}

/* Final UX correction layer */
.hero {
  grid-template-columns: minmax(0, .9fr) minmax(320px, .7fr);
  min-height: auto;
  padding-top: clamp(108px, 11vw, 138px);
  padding-bottom: clamp(46px, 7vw, 78px);
  background:
    radial-gradient(circle at 82% 18%, rgba(216, 167, 53, .2), transparent 22%),
    radial-gradient(circle at 18% 20%, rgba(47, 179, 68, .12), transparent 20%),
    linear-gradient(135deg, #061427 0%, #0b2441 54%, #08111f 100%);
}

.hero h1 {
  font-size: clamp(2.35rem, 4.6vw, 4.95rem);
  line-height: 1.02;
  max-width: 700px;
}

.hero p {
  font-size: 1rem;
}

.hero::before {
  width: 260px;
  height: 260px;
  opacity: .72;
}

.hero-slider {
  min-height: 430px;
  padding: 16px;
}

.hero-slide {
  inset: 16px;
}

.hero-slide img,
.generated-visual {
  width: 100%;
  height: 260px;
  border-radius: 8px;
}

.hero-slide img {
  object-fit: contain;
  background: rgba(255, 255, 255, .06);
}

.generated-visual {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, .12), rgba(255, 255, 255, .03)),
    radial-gradient(circle at 30% 20%, rgba(216, 167, 53, .5), transparent 20%),
    linear-gradient(120deg, #102d4f, #071a33);
}

.generated-visual::before {
  content: "";
  position: absolute;
  inset: 18px;
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 8px;
}

.generated-visual span {
  position: absolute;
  display: block;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--gold), rgba(255, 255, 255, .5));
}

.generated-visual span:nth-child(1) {
  width: 44%;
  height: 14px;
  left: 34px;
  top: 58px;
}

.generated-visual span:nth-child(2) {
  width: 64%;
  height: 14px;
  left: 34px;
  top: 96px;
  opacity: .68;
}

.generated-visual span:nth-child(3) {
  width: 120px;
  height: 120px;
  right: 34px;
  bottom: 28px;
  border-radius: 24px;
  opacity: .5;
}

.hero-slide h2 {
  font-size: clamp(1.15rem, 2vw, 1.65rem);
}

.hero-slider .status-strip {
  display: none;
}

.slider-dots {
  bottom: 22px;
}

.section {
  padding-top: clamp(42px, 6vw, 74px);
  padding-bottom: clamp(42px, 6vw, 74px);
}

.section h2,
.visual-band h2,
.login-brand h1,
.dashboard h1 {
  font-size: clamp(1.7rem, 3.2vw, 3rem);
}

.section p,
.visual-band p,
.login-brand p {
  font-size: .98rem;
}

.service-card,
.job-card,
.announcement-list article,
.timeline article,
.cert-grid article,
.project-card,
.about-grid article,
.process-grid article,
.strength-grid article,
.supply-columns article {
  padding: 18px;
}

.horizontal-slider article {
  flex-basis: min(360px, 84vw);
}

.job-card dl {
  gap: 8px;
  margin-top: 14px;
}

.job-card dd {
  font-size: .94rem;
}

.announcement-list article {
  min-height: 250px;
}

.floating-actions {
  right: 12px;
}

.floating-actions a,
.floating-actions button {
  min-width: 112px;
  padding: 9px 12px;
  font-size: .82rem;
}

.floating-actions a::before,
.floating-actions button::before,
.button.primary::before,
.button.ghost::before {
  display: inline-block;
  margin-right: 6px;
}

.floating-actions a[href*="wa.me"]::before {
  content: "WA";
}

.floating-actions a[href^="tel"]::before {
  content: "PH";
}

.floating-actions button::before {
  content: "IN";
}

.nav-login-dot {
  width: 30px;
  height: 30px;
}

.nav-login-dot::after {
  inset: 9px;
}

.nav-login-dot::before {
  top: 36px;
}

.portal-login-card {
  gap: 12px;
}

.portal-login-card img {
  width: 76px;
}

.inline-login-form,
.forgot-form {
  display: grid;
  gap: 12px;
}

.forgot-form {
  margin-top: 6px;
  border-top: 1px solid var(--line);
  padding-top: 14px;
}

.site-modal {
  width: min(680px, calc(100vw - 28px));
}

.modal-card {
  padding: clamp(18px, 3vw, 30px);
}

.modal-card h2 {
  font-size: clamp(1.45rem, 2.4vw, 2.3rem);
}

.admin-top {
  display: grid;
  grid-template-columns: 1fr auto;
  padding: 12px 16px;
  border-radius: 10px;
}

.admin-top h1 {
  margin: 0;
  font-size: clamp(1.35rem, 2.3vw, 2.5rem);
}

.admin-top .eyebrow {
  margin-bottom: 5px;
  font-size: .68rem;
}

.admin-actions .button {
  padding: 9px 12px;
  font-size: .88rem;
}

.admin-main {
  gap: 16px;
  padding-top: 18px;
}

.admin-command-center article {
  padding: 14px;
}

.admin-command-center span {
  font-size: 1.8rem;
}

.admin-section {
  padding: clamp(14px, 2.2vw, 22px);
}

.admin-body {
  grid-template-columns: 235px minmax(0, 1fr);
}

.admin-sidebar {
  transition: width .25s ease;
}

.admin-sidebar nav a,
.admin-sidebar nav button {
  padding: 9px 10px;
  font-size: .92rem;
}

.sidebar-collapsed {
  grid-template-columns: 76px minmax(0, 1fr);
}

.portal-body {
  background:
    radial-gradient(circle at 20% 14%, rgba(216, 167, 53, .22), transparent 22%),
    radial-gradient(circle at 82% 18%, rgba(255, 255, 255, .08), transparent 20%),
    linear-gradient(135deg, #061427, #0b2441 58%, #07111f);
}

.portal-shell {
  grid-template-columns: minmax(280px, .8fr) minmax(320px, .85fr);
  align-items: center;
}

.auth-card {
  max-width: 560px;
  justify-self: end;
}

@media (max-width: 980px) {
  .admin-top {
    grid-template-columns: 1fr;
  }

  .hero {
    grid-template-columns: 1fr;
  }
}

/* Last-write overrides to prevent poster overlap/cropping from older rules */
.hero {
  background:
    radial-gradient(circle at 82% 18%, rgba(216, 167, 53, .2), transparent 22%),
    radial-gradient(circle at 18% 20%, rgba(47, 179, 68, .12), transparent 20%),
    linear-gradient(135deg, #061427 0%, #0b2441 54%, #08111f 100%) !important;
}

.hero-slider {
  min-height: 430px !important;
}

.hero-slide img,
.generated-visual {
  height: 260px !important;
  object-fit: contain !important;
}

.hero-panel img {
  width: 100%;
}

/* Tuning pass for readability, traceability, and admin war-room workflow */
.hero {
  grid-template-columns: minmax(0, .95fr) minmax(360px, .78fr);
}

.hero h1 {
  font-size: clamp(2.7rem, 5.9vw, 6rem);
  max-width: 760px;
}

.hero-copy p {
  max-width: 620px;
}

.hero-slider {
  min-height: 540px;
}

.hero-slide img {
  height: 340px;
  object-fit: contain;
  background: rgba(5, 15, 31, .72);
}

.hero-slide h2 {
  font-size: clamp(1.25rem, 2.4vw, 2rem);
}

.site-header {
  left: clamp(16px, 2.4vw, 44px);
  right: clamp(16px, 2.4vw, 44px);
  padding: 12px clamp(18px, 3vw, 46px);
}

.site-header nav {
  gap: 16px;
}

.nav-login-dot {
  width: 36px;
  height: 36px;
}

.nav-login-dot::before {
  content: "Login";
  position: absolute;
  right: 0;
  top: 44px;
  width: max-content;
  border-radius: 999px;
  padding: 6px 9px;
  background: #071a33;
  color: var(--white);
  font-size: .74rem;
  opacity: 0;
  transform: translateY(-4px);
  transition: opacity .2s ease, transform .2s ease;
}

.nav-login-dot:hover::before {
  opacity: 1;
  transform: translateY(0);
}

.nav-login-dot::after {
  inset: 11px;
}

.floating-actions {
  right: 14px;
  bottom: 14px;
}

.floating-actions a,
.floating-actions button {
  padding: 10px 13px;
  font-size: .88rem;
}

.compact-button {
  padding: 9px 12px;
  font-size: .88rem;
}

.job-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.as-button {
  border: 0;
  background: transparent;
  padding: 0;
  font: inherit;
  cursor: pointer;
}

.modal-card {
  max-height: calc(100vh - 100px);
  overflow: auto;
}

.modal-card h2 {
  font-size: clamp(1.7rem, 3.2vw, 2.65rem);
}

.modal-body-text {
  white-space: pre-wrap;
  color: #314056;
}

.admin-body {
  grid-template-columns: 250px minmax(0, 1fr);
}

.admin-top h1 {
  font-size: clamp(2rem, 4vw, 4.2rem);
}

.admin-sidebar nav a,
.admin-sidebar nav button {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 0;
  border-radius: 8px;
  padding: 11px 12px;
  background: transparent;
  color: rgba(255, 255, 255, .78);
  font: inherit;
  font-weight: 800;
  text-align: left;
  cursor: pointer;
}

.admin-sidebar nav a::before,
.admin-sidebar nav button::before {
  content: "";
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 5px rgba(216, 167, 53, .1);
}

.sidebar-collapsed {
  grid-template-columns: 86px minmax(0, 1fr);
}

.sidebar-collapsed .admin-sidebar .brand span,
.sidebar-collapsed .admin-sidebar nav a,
.sidebar-collapsed .admin-sidebar nav button {
  font-size: 0;
}

.sidebar-collapsed .admin-sidebar nav a::before,
.sidebar-collapsed .admin-sidebar nav button::before {
  width: 14px;
  height: 14px;
}

.admin-command-center {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.war-card.urgent {
  background: linear-gradient(145deg, #071a33, #0d2a4e);
  color: var(--white);
}

.war-card.urgent span {
  color: #f6ca55;
}

.war-room {
  background:
    linear-gradient(145deg, rgba(7, 26, 51, .96), rgba(8, 31, 60, .92)),
    radial-gradient(circle at top right, rgba(216, 167, 53, .22), transparent 32%);
  color: var(--white);
}

.war-room h2,
.war-room .eyebrow {
  color: var(--white);
}

.toolbar-row {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) minmax(160px, 220px);
  gap: 12px;
  margin-bottom: 16px;
}

.ledger-table,
.editor-ledger {
  display: grid;
  gap: 12px;
}

.ledger-row {
  display: grid;
  grid-template-columns: 22px minmax(160px, .8fr) minmax(180px, 1fr) minmax(220px, 1.2fr) minmax(240px, 1.1fr);
  gap: 14px;
  align-items: start;
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 12px;
  padding: 14px;
  background: rgba(255, 255, 255, .08);
}

.ledger-row small {
  display: block;
  margin-top: 5px;
  color: rgba(255, 255, 255, .68);
}

.ledger-row p {
  margin: 0;
  color: rgba(255, 255, 255, .78);
}

.signal {
  display: inline-block;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  margin-right: 6px;
  background: #98a2b3;
}

.signal.is-live {
  background: #12b76a;
  box-shadow: 0 0 0 7px rgba(18, 183, 106, .16);
  animation: pulseSignal 1.4s ease-in-out infinite;
}

.signal.is-warm {
  background: #f6ca55;
  box-shadow: 0 0 0 7px rgba(246, 202, 85, .18);
}

.signal.is-off {
  background: #667085;
  box-shadow: none;
}

.status-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  color: rgba(255, 255, 255, .78);
  font-weight: 800;
}

.row-actions,
.inline-action-form {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.inline-action-form select {
  min-width: 120px;
}

.inline-action-form label {
  color: rgba(255, 255, 255, .78);
  font-weight: 800;
}

.mini-button {
  border: 1px solid rgba(255, 255, 255, .2);
  border-radius: 999px;
  padding: 8px 10px;
  background: rgba(255, 255, 255, .1);
  color: var(--white);
  font: inherit;
  font-weight: 900;
  cursor: pointer;
}

.mini-button.danger {
  background: rgba(240, 68, 56, .18);
  border-color: rgba(240, 68, 56, .4);
}

.empty-state {
  border: 1px dashed rgba(255, 255, 255, .28);
  border-radius: 12px;
  padding: 24px;
  color: rgba(255, 255, 255, .76);
}

.event-row {
  position: relative;
}

.row-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #314056;
  font-weight: 900;
}

.portal-shell {
  min-height: 100vh;
  align-items: start;
  padding-top: clamp(42px, 7vw, 86px);
}

.portal-shell .dashboard {
  position: relative;
  z-index: 1;
  grid-column: 1 / -1;
  width: min(1180px, 100%);
  margin: 0 auto;
  border: 1px solid rgba(255, 255, 255, .24);
  border-radius: 18px;
  padding: clamp(18px, 3vw, 30px);
  background: rgba(255, 255, 255, .9);
  color: var(--ink);
  backdrop-filter: blur(16px);
}

.portal-shell .dashboard h1,
.portal-shell .project-card h2 {
  color: var(--navy);
}

.portal-shell .project-grid {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

@keyframes pulseSignal {
  0%, 100% {
    box-shadow: 0 0 0 4px rgba(18, 183, 106, .12);
  }
  50% {
    box-shadow: 0 0 0 10px rgba(18, 183, 106, .24);
  }
}

@media (max-width: 1100px) {
  .hero {
    grid-template-columns: 1fr;
  }

  .ledger-row {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 720px) {
  .hero h1 {
    font-size: clamp(2.4rem, 12vw, 4.2rem);
  }

  .toolbar-row,
  .admin-command-center {
    grid-template-columns: 1fr;
  }
}

/* Premium interaction layer */
body {
  background:
    radial-gradient(circle at 12% 0%, rgba(216, 167, 53, .12), transparent 26%),
    linear-gradient(180deg, #f8fbff 0%, #eef3f9 100%);
}

.site-header {
  position: fixed;
  left: clamp(12px, 3vw, 36px);
  right: clamp(12px, 3vw, 36px);
  top: 16px;
  border: 1px solid rgba(255, 255, 255, .48);
  border-radius: 999px;
  background: rgba(255, 255, 255, .62);
  box-shadow: 0 18px 50px rgba(7, 26, 51, .12);
  transition: transform .35s ease, background .35s ease, padding .35s ease;
}

.site-header.is-scrolled {
  background: rgba(255, 255, 255, .88);
  padding-top: 9px;
  padding-bottom: 9px;
}

.site-header.is-hidden {
  transform: translateY(-130%);
}

.site-header .brand img {
  border-radius: 50%;
  box-shadow: 0 12px 34px rgba(216, 167, 53, .24);
}

.nav-login-dot {
  width: 48px;
  height: 48px;
  border: 1px solid rgba(216, 167, 53, .42);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 230, 162, .95), rgba(216, 167, 53, .2));
  color: transparent;
  cursor: pointer;
  font-weight: 900;
  position: relative;
}

.nav-login-dot::after {
  content: "";
  position: absolute;
  inset: 15px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 7px rgba(216, 167, 53, .14);
}

.hero {
  position: relative;
  min-height: 100vh;
  padding-top: clamp(120px, 14vw, 170px);
  background:
    linear-gradient(90deg, rgba(5, 15, 31, .88), rgba(5, 15, 31, .62)),
    url("presentation-media/image8.png") center / cover no-repeat;
}

.hero::before,
.hero::after {
  content: "";
  position: absolute;
  pointer-events: none;
  border-radius: 50%;
}

.hero::before {
  width: 360px;
  height: 360px;
  right: 8%;
  top: 16%;
  background: radial-gradient(circle, rgba(216, 167, 53, .34), transparent 64%);
  animation: floatGlow 7s ease-in-out infinite;
}

.hero::after {
  width: 2px;
  height: 46%;
  left: 4%;
  top: 30%;
  background: linear-gradient(transparent, rgba(216, 167, 53, .9), transparent);
}

.hero-copy,
.hero-panel {
  position: relative;
  z-index: 1;
}

.button,
.nav-pill,
.slider-controls button,
.floating-actions a,
.floating-actions button,
.launcher-grid button {
  cursor: pointer;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}

.button:hover,
.nav-pill:hover,
.slider-controls button:hover,
.floating-actions a:hover,
.floating-actions button:hover,
.launcher-grid button:hover {
  transform: translateY(-2px);
}

.button.glass {
  color: var(--white);
  background: rgba(255, 255, 255, .1);
  border-color: rgba(255, 255, 255, .24);
}

.hero-slider {
  min-height: 620px;
  overflow: hidden;
}

.hero-slide {
  position: absolute;
  inset: 18px;
  display: grid;
  grid-template-rows: 1fr auto;
  opacity: 0;
  transform: translateX(24px) scale(.98);
  transition: opacity .6s ease, transform .6s ease;
}

.hero-slide.is-active {
  opacity: 1;
  transform: translateX(0) scale(1);
}

.hero-slide img {
  width: 100%;
  height: 400px;
  object-fit: cover;
  border-radius: 8px;
}

.hero-slide h2 {
  margin: 18px 0 6px;
  color: var(--white);
  font-size: clamp(1.5rem, 3vw, 2.4rem);
}

.hero-slide p {
  margin: 0;
  text-align: left;
}

.slider-dots {
  position: absolute;
  left: 28px;
  bottom: 96px;
  display: flex;
  gap: 8px;
  z-index: 3;
}

.slider-dots button {
  width: 10px;
  height: 10px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, .38);
  cursor: pointer;
  transition: width .25s ease, background .25s ease;
}

.slider-dots button.is-active {
  width: 34px;
  background: var(--gold);
}

.hero-slider .status-strip {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 18px;
  z-index: 2;
}

.service-card,
.job-card,
.about-grid article,
.strength-grid article,
.supply-columns article,
.announcement-list article,
.timeline article,
.cert-grid article,
.project-card {
  position: relative;
  overflow: hidden;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}

.service-card::before,
.job-card::before,
.about-grid article::before,
.strength-grid article::before,
.supply-columns article::before,
.announcement-list article::before,
.timeline article::before,
.cert-grid article::before,
.project-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(216, 167, 53, .16), transparent 42%);
  opacity: 0;
  transition: opacity .25s ease;
}

.service-card:hover,
.job-card:hover,
.about-grid article:hover,
.strength-grid article:hover,
.supply-columns article:hover,
.announcement-list article:hover,
.timeline article:hover,
.cert-grid article:hover,
.project-card:hover {
  transform: translateY(-6px);
  border-color: rgba(216, 167, 53, .44);
  box-shadow: 0 26px 70px rgba(7, 26, 51, .18);
}

.service-card:hover::before,
.job-card:hover::before,
.about-grid article:hover::before,
.strength-grid article:hover::before,
.supply-columns article:hover::before,
.announcement-list article:hover::before,
.timeline article:hover::before,
.cert-grid article:hover::before,
.project-card:hover::before {
  opacity: 1;
}

.slider-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
}

.slider-controls {
  display: flex;
  gap: 10px;
}

.slider-controls button {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 10px 14px;
  background: var(--white);
  color: var(--navy);
  font-weight: 900;
}

.horizontal-slider {
  display: flex;
  grid-template-columns: none;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
  padding: 8px 4px 18px;
}

.horizontal-slider article {
  flex: 0 0 min(420px, 86vw);
  scroll-snap-align: start;
}

.floating-actions {
  position: fixed;
  right: 18px;
  bottom: 20px;
  z-index: 30;
  display: grid;
  gap: 10px;
}

.floating-actions a,
.floating-actions button {
  border: 1px solid rgba(255, 255, 255, .24);
  border-radius: 999px;
  padding: 12px 16px;
  background: rgba(5, 15, 31, .88);
  color: var(--white);
  box-shadow: 0 18px 40px rgba(5, 15, 31, .22);
  font: inherit;
  font-weight: 900;
  backdrop-filter: blur(12px);
}

.site-modal {
  width: min(780px, calc(100vw - 28px));
  border: 0;
  border-radius: 14px;
  padding: 0;
  background: transparent;
}

.site-modal::backdrop {
  background: rgba(5, 15, 31, .66);
  backdrop-filter: blur(8px);
}

.modal-card {
  display: grid;
  gap: 16px;
  padding: clamp(22px, 4vw, 38px);
  border: 1px solid rgba(255, 255, 255, .4);
  border-radius: 14px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, .96), rgba(248, 251, 255, .92)),
    radial-gradient(circle at top right, rgba(216, 167, 53, .24), transparent 28%);
  box-shadow: 0 34px 100px rgba(5, 15, 31, .34);
}

.modal-card h2 {
  margin: 0;
  color: var(--navy);
  font-size: clamp(1.8rem, 4vw, 3rem);
}

.portal-modal .modal-card img {
  width: 96px;
  border-radius: 18px;
}

.modal-close-form {
  display: flex;
  justify-content: end;
  margin-bottom: 10px;
}

.modal-close-form button {
  border: 0;
  border-radius: 999px;
  padding: 9px 13px;
  background: rgba(255, 255, 255, .92);
  color: var(--navy);
  font-weight: 900;
}

.footer-alert {
  grid-column: 1 / -1;
}

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .7s ease, transform .7s ease;
}

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

.admin-body {
  background:
    radial-gradient(circle at 70% 10%, rgba(216, 167, 53, .16), transparent 24%),
    linear-gradient(120deg, #071a33 0 280px, #eef3f9 280px 100%);
}

.admin-sidebar {
  background:
    linear-gradient(180deg, rgba(5, 15, 31, .98), rgba(7, 26, 51, .96)),
    radial-gradient(circle at top, rgba(216, 167, 53, .2), transparent 34%);
  box-shadow: 18px 0 60px rgba(5, 15, 31, .22);
}

.admin-main {
  padding-top: 32px;
}

.admin-top,
.admin-command-center,
.admin-section {
  border: 1px solid rgba(255, 255, 255, .72);
  background: rgba(255, 255, 255, .78);
  backdrop-filter: blur(18px);
}

.admin-top {
  position: sticky;
  top: 16px;
  z-index: 10;
  border-radius: 14px;
  padding: 18px;
  box-shadow: var(--shadow);
}

.admin-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.admin-command-center {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  border-radius: 14px;
  padding: 14px;
  box-shadow: var(--shadow);
}

.admin-command-center article {
  display: grid;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 18px;
  background: linear-gradient(145deg, var(--white), #f3f7fc);
}

.admin-command-center span {
  color: var(--gold);
  font-size: 2.3rem;
  font-weight: 950;
}

.admin-command-center button,
.launcher-grid button {
  border: 1px solid rgba(216, 167, 53, .34);
  border-radius: 999px;
  padding: 10px 13px;
  background: rgba(216, 167, 53, .12);
  color: var(--navy);
  font-weight: 900;
}

.admin-section {
  border-radius: 14px;
}

.admin-section-title {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  margin-bottom: 18px;
}

.status-pill {
  border-radius: 999px;
  padding: 9px 12px;
  background: #fee4e2;
  color: #912018;
  font-weight: 900;
}

.status-pill.is-on {
  background: #dcfae6;
  color: #085d3a;
}

.toggle-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.toggle-row label,
.inline-check {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 10px 13px;
  background: var(--white);
  font-weight: 900;
}

.toggle-row input,
.inline-check input {
  width: auto;
}

.repeat-row {
  background: rgba(255, 255, 255, .7);
}

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

.admin-luxe .admin-sidebar {
  background: linear-gradient(180deg, #100d05, #071a33);
}

.portal-body {
  background:
    linear-gradient(120deg, rgba(5, 15, 31, .88), rgba(7, 26, 51, .72)),
    url("presentation-media/image6.png") center / cover no-repeat fixed;
}

.portal-shell {
  color: var(--white);
}

.portal-shell .brand strong,
.portal-shell .login-brand h1 {
  color: var(--white);
}

.portal-shell .login-brand p,
.portal-shell .brand small {
  color: rgba(255, 255, 255, .72);
}

.auth-card {
  border-color: rgba(255, 255, 255, .34);
  background: rgba(255, 255, 255, .9);
  backdrop-filter: blur(16px);
}

.auth-logo {
  width: 92px;
  border-radius: 18px;
  box-shadow: 0 16px 44px rgba(216, 167, 53, .22);
}

@keyframes floatGlow {
  0%, 100% {
    transform: translateY(0) scale(1);
  }
  50% {
    transform: translateY(24px) scale(1.08);
  }
}

@media (max-width: 980px) {
  .site-header {
    border-radius: 22px;
  }

  .admin-command-center,
  .launcher-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .site-header {
    left: 10px;
    right: 10px;
    top: 10px;
  }

  .site-header nav {
    top: 84px;
    border-radius: 18px;
  }

  .hero-slider {
    min-height: 540px;
  }

  .hero-slide img {
    height: 320px;
  }

  .floating-actions {
    left: 12px;
    right: 12px;
    grid-template-columns: repeat(3, 1fr);
  }

  .floating-actions a,
  .floating-actions button {
    padding: 11px 8px;
    text-align: center;
    font-size: .84rem;
  }

  .admin-command-center,
  .launcher-grid {
    grid-template-columns: 1fr;
  }
}

/* Absolute final overrides: compact, visible, and no stale oversized hero */
body {
  font-size: 15px;
}

.hero {
  min-height: auto !important;
  padding: 108px clamp(18px, 5vw, 74px) 58px !important;
  grid-template-columns: minmax(0, .88fr) minmax(320px, .62fr) !important;
  background:
    radial-gradient(circle at 76% 18%, rgba(216, 167, 53, .22), transparent 22%),
    radial-gradient(circle at 22% 24%, rgba(48, 172, 211, .13), transparent 24%),
    linear-gradient(135deg, #061427 0%, #0b2441 56%, #07111f 100%) !important;
}

.hero h1 {
  max-width: 620px !important;
  font-size: clamp(2.05rem, 3.75vw, 4.15rem) !important;
  line-height: 1.06 !important;
}

.hero p {
  max-width: 560px !important;
  font-size: .96rem !important;
}

.hero-slider {
  min-height: 360px !important;
}

.hero-slide img,
.generated-visual {
  height: 210px !important;
  object-fit: contain !important;
}

.hero-slide h2 {
  font-size: clamp(1.05rem, 1.8vw, 1.45rem) !important;
}

.section {
  padding: 42px clamp(18px, 5vw, 62px) !important;
}

.section h2,
.visual-band h2,
.login-brand h1,
.dashboard h1 {
  font-size: clamp(1.45rem, 2.55vw, 2.55rem) !important;
}

.announcement-section {
  background: linear-gradient(180deg, #fff, #f8fbff) !important;
}

.announcement-list.horizontal-slider,
.job-grid.horizontal-slider {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(280px, 360px)) !important;
  overflow: visible !important;
  padding: 0 !important;
}

.announcement-list article,
.job-card,
.service-card,
.about-grid article,
.strength-grid article,
.supply-columns article,
.timeline article,
.cert-grid article {
  padding: 16px !important;
  min-height: auto !important;
  font-size: .94rem !important;
}

.announcement-list article p,
.job-card p,
.job-card dd {
  font-size: .92rem !important;
  line-height: 1.5 !important;
}

.job-card h3,
.announcement-list h3 {
  font-size: 1.1rem !important;
}

.job-actions {
  margin-top: 12px !important;
}

.button,
.compact-button,
.slider-controls button {
  padding: 9px 13px !important;
  font-size: .88rem !important;
}

.floating-actions a,
.floating-actions button {
  min-width: 92px !important;
  padding: 8px 10px !important;
  font-size: .78rem !important;
}

.floating-actions a::before,
.floating-actions button::before {
  content: "" !important;
  display: none !important;
}

.site-header {
  padding: 10px clamp(16px, 3vw, 34px) !important;
}

.site-header .brand img {
  width: 46px !important;
  height: 46px !important;
}

.site-header nav {
  gap: 13px !important;
  font-size: .9rem !important;
}

.nav-login-dot {
  width: 28px !important;
  height: 28px !important;
}

.nav-login-dot::after {
  inset: 8px !important;
}

.admin-top {
  padding: 10px 14px !important;
  border-radius: 10px !important;
}

.admin-top h1 {
  font-size: clamp(1.25rem, 2vw, 2.15rem) !important;
}

.admin-command-center article {
  padding: 12px !important;
}

.admin-section {
  padding: 16px !important;
}

@media (max-width: 980px) {
  .hero {
    grid-template-columns: 1fr !important;
  }
}
