:root {
  --color-ink: #172033;
  --color-muted: #5d687a;
  --color-line: #d9e0ea;
  --color-page: #f6f8fb;
  --color-surface: #ffffff;
  --color-primary: #1f5f8f;
  --color-primary-dark: #17466a;
  --color-accent: #c7a15a;
  --shadow-soft: 0 22px 60px rgba(23, 32, 51, 0.12);
  --shadow-card: 0 14px 34px rgba(23, 32, 51, 0.08);
  --radius: 8px;
  --content-width: 1120px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Arial, "Helvetica Neue", Helvetica, sans-serif;
  color: var(--color-ink);
  background: var(--color-page);
  line-height: 1.6;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 1px solid rgba(217, 224, 234, 0.8);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
}

.nav {
  width: min(var(--content-width), calc(100% - 32px));
  min-height: 76px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

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

.brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: var(--radius);
  background: #fffdf0;
  border: 1px solid rgba(31, 95, 143, 0.2);
  overflow: hidden;
}

.brand-mark img {
  width: 34px;
  height: 34px;
  object-fit: contain;
}

.brand-text {
  font-size: 0.98rem;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-links a {
  padding: 10px 12px;
  border-radius: var(--radius);
  color: var(--color-muted);
  font-size: 0.94rem;
  font-weight: 700;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--color-primary);
  background: #eef5fa;
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--color-line);
  border-radius: var(--radius);
  background: #ffffff;
  cursor: pointer;
}

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

.section {
  width: min(var(--content-width), calc(100% - 32px));
  margin: 0 auto;
  padding: 88px 0;
  scroll-margin-top: 92px;
}

.hero {
  min-height: calc(100vh - 76px);
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(320px, 0.72fr);
  align-items: center;
  gap: 56px;
  padding-top: 70px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--color-primary);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 760px;
  margin-bottom: 14px;
  font-size: clamp(2.6rem, 7vw, 5.6rem);
  line-height: 0.96;
  letter-spacing: 0;
}

h2 {
  max-width: 760px;
  margin-bottom: 0;
  font-size: clamp(1.8rem, 4vw, 3rem);
  line-height: 1.08;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 12px;
  font-size: 1.18rem;
  line-height: 1.25;
}

.hero-tagline {
  margin-bottom: 18px;
  color: var(--color-primary-dark);
  font-size: clamp(1.18rem, 3vw, 1.55rem);
  font-weight: 800;
}

.hero-role {
  margin-bottom: 10px;
  color: var(--color-muted);
  font-size: clamp(0.96rem, 2vw, 1.12rem);
  font-weight: 700;
}

.hero-copy {
  max-width: 680px;
  margin-bottom: 32px;
  color: var(--color-muted);
  font-size: 1.08rem;
}

.hero-actions,
.contact-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-weight: 800;
}

.button-primary {
  color: #ffffff;
  background: var(--color-primary);
}

.button-primary:hover {
  background: var(--color-primary-dark);
}

.button-secondary {
  color: var(--color-primary-dark);
  border-color: var(--color-line);
  background: #ffffff;
}

.button-secondary:hover {
  border-color: var(--color-primary);
}

.identity-panel {
  min-height: 500px;
  padding: 32px;
  border: 1px solid rgba(217, 224, 234, 0.86);
  border-radius: var(--radius);
  background:
    linear-gradient(140deg, rgba(31, 95, 143, 0.94), rgba(23, 32, 51, 0.98)),
    #172033;
  color: #ffffff;
  box-shadow: var(--shadow-soft);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
}

.logo-frame {
  display: grid;
  place-items: center;
  width: min(100%, 330px);
  aspect-ratio: 1;
  margin: 0 auto;
}

.logo-frame img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.identity-details {
  width: 100%;
  margin: 28px 0;
  text-align: center;
}

.identity-details p {
  margin-bottom: 4px;
  font-size: 1.25rem;
  font-weight: 800;
}

.identity-details span,
.quick-facts dt {
  color: rgba(255, 255, 255, 0.72);
}

.quick-facts {
  width: 100%;
  display: grid;
  gap: 12px;
  margin: 0;
}

.quick-facts div {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
}

.quick-facts dt {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
}

.quick-facts dd {
  margin: 0;
  font-weight: 800;
  text-align: right;
}

.section-heading {
  margin-bottom: 34px;
}

.about-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
  color: var(--color-muted);
  font-size: 1.04rem;
}

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

.info-card,
.project-card {
  min-height: 230px;
  padding: 24px;
  border: 1px solid var(--color-line);
  border-radius: var(--radius);
  background: var(--color-surface);
  box-shadow: var(--shadow-card);
}

.info-card {
  display: flex;
  flex-direction: column;
}

.info-card p,
.project-card p,
.contact-panel p {
  color: var(--color-muted);
}

.card-label,
.project-status {
  display: inline-flex;
  align-self: flex-start;
  margin-bottom: 16px;
  padding: 5px 8px;
  border-radius: 6px;
  color: var(--color-primary-dark);
  background: #edf5f8;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
}

.clean-list {
  margin: 0;
  padding-left: 20px;
  color: var(--color-muted);
}

.clean-list li + li {
  margin-top: 7px;
}

.competency-panel {
  margin-top: 18px;
  padding: 24px;
  border: 1px solid var(--color-line);
  border-radius: var(--radius);
  background: var(--color-surface);
  box-shadow: var(--shadow-card);
}

.competency-list {
  columns: 2;
  column-gap: 34px;
}

.projects-section {
  width: 100%;
  max-width: none;
  padding-right: max(16px, calc((100% - var(--content-width)) / 2));
  padding-left: max(16px, calc((100% - var(--content-width)) / 2));
  background: #ffffff;
}

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

.project-card {
  display: flex;
  flex-direction: column;
}

.project-card a {
  margin-top: auto;
  color: var(--color-primary);
  font-weight: 800;
}

.contact-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 0.45fr);
  gap: 34px;
  align-items: center;
  padding: 36px;
  border: 1px solid var(--color-line);
  border-radius: var(--radius);
  background: var(--color-surface);
  box-shadow: var(--shadow-card);
}

.contact-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 46px;
  padding: 0 16px;
  border: 1px solid var(--color-line);
  border-radius: var(--radius);
  color: var(--color-primary-dark);
  font-weight: 800;
  background: #ffffff;
}

.contact-link:hover {
  border-color: var(--color-primary);
}

.contact-link-muted {
  color: var(--color-muted);
  cursor: default;
}

.contact-link-muted:hover {
  border-color: var(--color-line);
}

.site-footer {
  width: min(var(--content-width), calc(100% - 32px));
  margin: 0 auto;
  padding: 28px 0 40px;
  border-top: 1px solid var(--color-line);
  color: var(--color-muted);
}

.footer-main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.site-footer p {
  margin-bottom: 0;
}

.footer-disclaimer {
  max-width: 880px;
  margin-top: 14px;
  font-size: 0.88rem;
  line-height: 1.55;
}

.footer-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.site-footer a,
.footer-link {
  color: var(--color-primary);
  border: 0;
  padding: 0;
  background: transparent;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.site-footer a:hover,
.footer-link:hover {
  color: var(--color-primary-dark);
}

.support-dialog {
  width: min(920px, calc(100% - 32px));
  max-height: min(760px, calc(100vh - 32px));
  padding: 0;
  border: 0;
  border-radius: var(--radius);
  color: var(--color-ink);
  background: transparent;
}

.support-dialog::backdrop {
  background: rgba(23, 32, 51, 0.58);
  backdrop-filter: blur(5px);
}

.support-modal {
  position: relative;
  padding: 34px;
  border: 1px solid var(--color-line);
  border-radius: var(--radius);
  background: var(--color-surface);
  box-shadow: var(--shadow-soft);
}

.support-close {
  position: absolute;
  top: 18px;
  right: 18px;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--color-line);
  border-radius: var(--radius);
  color: var(--color-ink);
  background: #ffffff;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
}

.support-close:hover {
  border-color: var(--color-primary);
}

.support-heading {
  max-width: 720px;
  padding-right: 52px;
  margin-bottom: 26px;
}

.support-heading h2 {
  margin-bottom: 12px;
}

.support-heading p,
.support-card p {
  color: var(--color-muted);
}

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

.support-card {
  min-height: 260px;
  padding: 22px;
  border: 1px solid var(--color-line);
  border-radius: var(--radius);
  background: #ffffff;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
}

.support-card a {
  margin-top: auto;
  color: var(--color-primary);
  font-weight: 800;
}

.support-card-qr img {
  display: block;
  width: min(100%, 220px);
  aspect-ratio: 1;
  margin: auto auto 0;
  padding: 10px;
  border: 1px solid var(--color-line);
  border-radius: var(--radius);
  background: #ffffff;
  object-fit: contain;
}

@media (max-width: 920px) {
  .hero,
  .about-grid,
  .contact-panel {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    padding-top: 56px;
  }

  .identity-panel {
    min-height: 420px;
  }

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

  .support-options {
    grid-template-columns: 1fr;
  }

  .competency-list {
    columns: 1;
  }
}

@media (max-width: 700px) {
  .nav {
    min-height: 68px;
  }

  .nav-toggle {
    display: block;
  }

  .nav-links {
    position: absolute;
    top: 68px;
    right: 16px;
    left: 16px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 10px;
    border: 1px solid var(--color-line);
    border-radius: var(--radius);
    background: #ffffff;
    box-shadow: var(--shadow-card);
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links a {
    padding: 12px;
  }

  .section {
    padding: 64px 0;
  }

  .projects-section {
    padding: 88px 16px 64px;
    scroll-margin-top: 86px;
  }

  .projects-section .section-heading {
    margin-bottom: 28px;
  }

  .projects-section h2 {
    max-width: 340px;
    font-size: 1.72rem;
    line-height: 1.14;
  }

  .hero {
    gap: 38px;
  }

  .hero-actions .button,
  .contact-link {
    width: 100%;
  }

  .identity-panel,
  .contact-panel,
  .info-card,
  .project-card {
    padding: 22px;
  }

  .background-grid,
  .project-grid {
    grid-template-columns: 1fr;
  }

  .site-footer {
    flex-direction: column;
    align-items: flex-start;
  }

  .support-modal {
    padding: 26px 20px 20px;
  }

  .support-heading {
    padding-right: 44px;
  }

  .support-heading h2 {
    font-size: 1.72rem;
    line-height: 1.14;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
