:root {
  --deep-blue: #07111f;
  --navy: #0d1c30;
  --blue: #2563eb;
  --gold: #f6b739;
  --gold-soft: rgba(246, 183, 57, 0.18);
  --white: #ffffff;
  --text: #edf6ff;
  --muted: #b7c7dc;
  --card: rgba(255, 255, 255, 0.09);
  --card-border: rgba(255, 255, 255, 0.16);
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.28);
  --radius: 24px;
  --transition: 240ms ease;
}

[data-theme="light"] {
  --deep-blue: #f3f8ff;
  --navy: #ffffff;
  --blue: #1d4ed8;
  --gold: #b7791f;
  --gold-soft: rgba(183, 121, 31, 0.14);
  --white: #071a33;
  --text: #132033;
  --muted: #3d4f68;
  --card: rgba(255, 255, 255, 0.9);
  --card-border: rgba(10, 34, 66, 0.12);
  --shadow: 0 24px 70px rgba(13, 38, 76, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    linear-gradient(145deg, rgba(37, 99, 235, 0.12), rgba(20, 184, 166, 0.08) 42%, rgba(246, 183, 57, 0.08)),
    var(--deep-blue);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

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

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

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

.skip-link {
  position: absolute;
  left: -999px;
  top: 12px;
  background: var(--gold);
  color: #071a33;
  padding: 10px 14px;
  border-radius: 12px;
  z-index: 9999;
}

.skip-link:focus {
  left: 12px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(18px);
  background: color-mix(in srgb, var(--deep-blue) 78%, transparent);
  border-bottom: 1px solid var(--card-border);
}

.navbar {
  height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  letter-spacing: 0;
  min-width: 0;
}

.brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--blue), var(--gold));
  color: #fff;
  box-shadow: 0 12px 30px rgba(21, 87, 176, 0.35);
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 18px;
  color: var(--muted);
  font-weight: 600;
  font-size: 0.92rem;
  min-width: 0;
}

.nav-menu a {
  transition: color var(--transition);
}

.nav-menu a:hover,
.nav-menu a[aria-current="page"] {
  color: var(--gold);
}

.theme-toggle,
.nav-toggle {
  border: 1px solid var(--card-border);
  background: var(--card);
  color: var(--text);
  cursor: pointer;
}

.theme-toggle {
  width: 42px;
  height: 42px;
  border-radius: 50%;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  padding: 10px;
}

.nav-toggle span {
  display: block;
  height: 2px;
  margin: 5px 0;
  background: var(--text);
}

.section {
  padding: 104px 0;
}

.hero {
  position: relative;
  min-height: calc(100vh - 78px);
  min-height: calc(100dvh - 78px);
  display: grid;
  align-items: center;
  overflow: hidden;
  isolation: isolate;
  color: #f8fbff;
  background: #07111f;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.08) 1px, transparent 1px),
    linear-gradient(180deg, rgba(255, 255, 255, 0.06) 1px, transparent 1px);
  background-size: 72px 72px;
  opacity: 0.2;
  -webkit-mask-image: linear-gradient(90deg, rgba(0, 0, 0, 0.72), transparent 78%);
  mask-image: linear-gradient(90deg, rgba(0, 0, 0, 0.72), transparent 78%);
  pointer-events: none;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    linear-gradient(115deg, rgba(5, 18, 35, 0.98) 0%, rgba(12, 45, 82, 0.96) 48%, rgba(8, 92, 86, 0.94) 100%),
    linear-gradient(180deg, rgba(246, 183, 57, 0.16), transparent 46%);
  pointer-events: none;
}

.page-hero {
  position: relative;
  overflow: hidden;
  padding: 108px 0 82px;
  background:
    linear-gradient(120deg, rgba(21, 87, 176, 0.18), transparent 46%),
    linear-gradient(160deg, rgba(216, 170, 61, 0.12), transparent 58%);
}

.page-hero-inner {
  max-width: 900px;
}

.page-hero h1 {
  font-size: 4.8rem;
  line-height: 1;
  letter-spacing: 0;
  margin-bottom: 20px;
}

.page-intro {
  max-width: 760px;
  color: var(--muted);
  font-size: 1.12rem;
  margin-bottom: 0;
}

.hero-grid,
.two-column,
.contact-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(0, 0.96fr);
  gap: 56px;
  align-items: center;
}

.hero-grid {
  z-index: 1;
}

.hero-grid > *,
.two-column > *,
.contact-grid > *,
.impact-grid > *,
.cta-band > * {
  min-width: 0;
}

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

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

h1 {
  font-size: 5.9rem;
  line-height: 0.98;
  letter-spacing: 0;
  margin-bottom: 22px;
}

h1,
h2,
h3 {
  overflow-wrap: anywhere;
  text-wrap: balance;
}

p {
  text-wrap: pretty;
}

.hero h2 {
  max-width: 760px;
  font-size: 1.55rem;
  line-height: 1.35;
  color: #eff7ff;
  font-weight: 700;
  margin-bottom: 18px;
}

.hero-intro {
  max-width: 650px;
  color: #d7e5f6;
  font-size: 1.08rem;
}

.hero .eyebrow {
  color: #ffd166;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.32);
}

.hero h1 {
  color: #ffffff;
  text-shadow: 0 18px 46px rgba(0, 0, 0, 0.38);
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 22px;
  border-radius: 999px;
  font-weight: 800;
  border: 1px solid transparent;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition);
}

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

.btn.primary {
  background: linear-gradient(135deg, var(--blue), #1b6de0);
  color: #fff;
  box-shadow: 0 16px 35px rgba(21, 87, 176, 0.34);
}

.btn.secondary {
  border-color: var(--card-border);
  background: var(--card);
}

.hero .btn.secondary {
  border-color: rgba(255, 255, 255, 0.72);
  background: rgba(255, 255, 255, 0.96);
  color: #132033;
  box-shadow: 0 16px 35px rgba(0, 0, 0, 0.22);
}

.trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.trust-row span,
.tags span {
  border: 1px solid var(--card-border);
  background: var(--gold-soft);
  color: var(--text);
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 0.84rem;
  font-weight: 700;
}

.hero .trust-row span {
  border-color: rgba(255, 255, 255, 0.24);
  background: rgba(255, 255, 255, 0.1);
  color: #f8fbff;
  backdrop-filter: blur(14px);
}

.portrait-card {
  position: relative;
  padding: 20px;
  border: 1px solid var(--card-border);
  background: linear-gradient(145deg, var(--card), rgba(216, 170, 61, 0.06));
  border-radius: 36px;
  box-shadow: var(--shadow);
}

.portrait-card img {
  border-radius: 28px;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  background: var(--navy);
}

.status-card {
  position: absolute;
  left: -18px;
  right: 28px;
  bottom: 34px;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: linear-gradient(135deg, rgba(13, 28, 48, 0.94), rgba(21, 87, 176, 0.88));
  color: #ffffff;
  backdrop-filter: blur(16px);
  border-radius: 18px;
  box-shadow: var(--shadow);
}

.status-card strong,
.status-card span {
  display: block;
}

.status-card span {
  color: #dbe8f8;
  font-size: 0.9rem;
  margin-top: 3px;
}

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

.section-heading.centered {
  text-align: center;
  max-width: 760px;
  margin-inline: auto;
  margin-bottom: 48px;
}

.section-heading h2 {
  font-size: 3.35rem;
  line-height: 1.05;
  letter-spacing: 0;
}

.about-content {
  color: var(--muted);
}

.about-cards {
  display: grid;
  gap: 16px;
  margin-top: 28px;
}

.about-cards article,
.skill-card,
.project-card,
.achievement-card,
.article-card,
.focus-card,
.media-card,
.cv-tool,
.news-card,
.news-detail-card,
.achievement-gallery-card,
.impact-board,
.impact-stat,
.impact-feature,
.impact-card,
.testimonial-grid blockquote,
.contact-form,
.timeline-item,
.gallery-grid figure,
.cta-band {
  border: 1px solid var(--card-border);
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.about-cards article {
  padding: 22px;
}

.about-cards h3 {
  color: var(--text);
}

.skills-grid,
.card-grid,
.article-grid,
.focus-grid,
.media-grid,
.impact-track,
.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.focus-card,
.media-card,
.impact-card {
  padding: 24px;
}

.focus-card span,
.media-card span,
.impact-card span,
.impact-feature span,
.achievement-card span,
.article-card span {
  color: var(--gold);
  font-weight: 900;
}

.focus-card p,
.media-card p,
.impact-card p,
.impact-feature p {
  color: var(--muted);
}

.article-card a,
.article-status,
.media-card a {
  color: var(--gold);
  display: inline-flex;
  font-weight: 800;
  margin-top: 8px;
}

.impact-lab {
  background:
    linear-gradient(180deg, transparent, rgba(21, 87, 176, 0.08) 48%, transparent),
    color-mix(in srgb, var(--deep-blue) 92%, var(--gold) 8%);
}

.impact-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  gap: 28px;
  align-items: stretch;
}

.impact-copy {
  align-self: center;
}

.impact-copy h2 {
  font-size: 3.8rem;
  line-height: 1;
  letter-spacing: 0;
  margin-bottom: 22px;
}

.impact-copy p {
  color: var(--muted);
  max-width: 620px;
  font-size: 1.05rem;
}

.impact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 30px;
}

.impact-board {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  padding: 18px;
  background:
    linear-gradient(135deg, rgba(21, 87, 176, 0.24), transparent 42%),
    linear-gradient(160deg, rgba(216, 170, 61, 0.14), transparent 58%),
    var(--card);
}

.impact-stat {
  min-height: 138px;
  padding: 18px;
  box-shadow: none;
}

.impact-stat.highlight {
  background: linear-gradient(135deg, rgba(21, 87, 176, 0.45), rgba(46, 160, 137, 0.24));
}

.impact-stat strong {
  display: block;
  color: var(--text);
  font-size: 3.4rem;
  line-height: 0.9;
  letter-spacing: 0;
}

.impact-stat span {
  display: block;
  color: var(--muted);
  font-weight: 800;
  margin-top: 12px;
}

.impact-feature {
  grid-column: 1 / -1;
  padding: 24px;
  box-shadow: none;
  background:
    linear-gradient(90deg, rgba(216, 170, 61, 0.14), transparent),
    var(--card);
}

.impact-feature h3 {
  font-size: 1.7rem;
  line-height: 1.15;
  margin: 8px 0 10px;
}

.impact-track {
  margin-top: 20px;
}

.cv-section {
  background:
    linear-gradient(120deg, rgba(21, 87, 176, 0.14), transparent 46%),
    linear-gradient(240deg, rgba(46, 160, 137, 0.12), transparent 56%),
    color-mix(in srgb, var(--deep-blue) 94%, var(--gold) 6%);
}

.cv-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.98fr) minmax(320px, 0.72fr);
  gap: 34px;
  align-items: center;
}

.cv-grid > * {
  min-width: 0;
}

.cv-copy h2 {
  font-size: 3.35rem;
  line-height: 1.05;
  letter-spacing: 0;
  margin-bottom: 18px;
}

.cv-copy p {
  max-width: 680px;
  color: var(--muted);
  font-size: 1.05rem;
}

.cv-tool {
  display: grid;
  gap: 22px;
  padding: 28px;
  background:
    linear-gradient(135deg, rgba(21, 87, 176, 0.24), transparent 54%),
    linear-gradient(160deg, rgba(216, 170, 61, 0.14), transparent 70%),
    var(--card);
}

.cv-file-summary {
  display: flex;
  align-items: center;
  gap: 16px;
  min-width: 0;
}

.cv-file-badge {
  flex: 0 0 64px;
  width: 64px;
  height: 64px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  background: linear-gradient(135deg, var(--blue), var(--gold));
  color: #fff;
  font-size: 0.92rem;
  font-weight: 900;
  box-shadow: 0 16px 34px rgba(21, 87, 176, 0.32);
}

.cv-file-summary h3 {
  margin-bottom: 6px;
}

.cv-status {
  overflow-wrap: anywhere;
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 700;
  margin: 0;
}

.cv-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.cv-actions .btn {
  cursor: pointer;
}

.skill-card {
  padding: 20px;
}

.skill-card span,
.skill-card strong {
  font-weight: 800;
}

.bar {
  height: 10px;
  background: rgba(127, 157, 194, 0.2);
  border-radius: 999px;
  overflow: hidden;
  margin: 14px 0 8px;
}

.bar span {
  display: block;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--blue), var(--gold));
  border-radius: inherit;
  transition: width 1200ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.timeline {
  position: relative;
  max-width: 820px;
  margin: 0 auto;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 18px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(var(--blue), var(--gold));
}

.timeline-item {
  position: relative;
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 20px;
  padding: 24px;
  margin-bottom: 18px;
}

.dot {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--blue), var(--gold));
  border: 6px solid var(--deep-blue);
  z-index: 2;
}

.timeline-item p,
.article-card p,
.achievement-card p,
.project-card p,
.testimonial-grid p {
  color: var(--muted);
}

.project-card {
  overflow: hidden;
}

.project-card img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  background: var(--navy);
}

.card-body {
  padding: 22px;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 18px 0;
}

.card-links {
  display: flex;
  gap: 14px;
  color: var(--gold);
  font-weight: 800;
}

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

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

.achievement-card,
.article-card {
  padding: 24px;
}

.achievement-gallery-card {
  display: flex;
  min-height: 100%;
  overflow: hidden;
  flex-direction: column;
  transition: border-color var(--transition), box-shadow var(--transition), transform var(--transition);
}

.achievement-gallery-card:hover,
.achievement-gallery-card:focus-visible {
  border-color: color-mix(in srgb, var(--gold) 70%, var(--card-border));
  box-shadow: 0 28px 76px rgba(0, 0, 0, 0.34);
  transform: translateY(-4px);
  outline: none;
}

.achievement-media {
  display: block;
  overflow: hidden;
  background: var(--navy);
}

.achievement-media img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform 500ms ease;
}

.certificate-card .achievement-media {
  background: #fff;
}

.certificate-card .achievement-media img {
  aspect-ratio: 16 / 11;
  object-fit: contain;
  padding: 8px;
}

.achievement-gallery-card:hover .achievement-media img,
.achievement-gallery-card:focus-visible .achievement-media img {
  transform: scale(1.04);
}

.achievement-content {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 10px;
  padding: 18px;
}

.achievement-label {
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.achievement-content strong {
  color: var(--text);
  font-size: 1.04rem;
  line-height: 1.22;
}

.achievement-content span:not(.achievement-label):not(.achievement-link) {
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.5;
}

.achievement-link {
  color: var(--gold);
  font-weight: 900;
  margin-top: auto;
}

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

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

.news-card {
  position: relative;
  display: flex;
  min-height: 100%;
  overflow: hidden;
  flex-direction: column;
  transition: border-color var(--transition), box-shadow var(--transition), transform var(--transition);
}

.news-card:hover,
.news-card:focus-visible {
  border-color: color-mix(in srgb, var(--gold) 70%, var(--card-border));
  box-shadow: 0 28px 76px rgba(0, 0, 0, 0.36);
  transform: translateY(-4px);
  outline: none;
}

.news-cover {
  display: block;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(21, 87, 176, 0.28), rgba(216, 170, 61, 0.2)),
    var(--navy);
}

.news-cover img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  transition: transform 500ms ease;
}

.news-card:hover .news-cover img,
.news-card:focus-visible .news-cover img {
  transform: scale(1.04);
}

.news-content {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 12px;
  padding: 18px;
}

.news-content strong {
  color: var(--text);
  font-size: 1.04rem;
  line-height: 1.22;
}

.news-content span:not(.news-meta):not(.news-link):not(.news-url) {
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.5;
}

.news-url {
  overflow-wrap: anywhere;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  line-height: 1.35;
}

.news-meta {
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.news-link,
.news-read-more {
  color: var(--gold);
  font-weight: 900;
  margin-top: auto;
}

.news-details {
  background: color-mix(in srgb, var(--deep-blue) 94%, var(--blue) 6%);
}

.news-detail-list {
  display: grid;
  gap: 20px;
}

.news-detail-card {
  display: grid;
  grid-template-columns: minmax(240px, 0.72fr) 1fr;
  gap: 0;
  overflow: hidden;
  scroll-margin-top: 110px;
}

.news-detail-card img {
  width: 100%;
  height: 100%;
  min-height: 280px;
  object-fit: cover;
  background: var(--navy);
}

.news-detail-content {
  padding: 30px;
}

.news-detail-content h3 {
  font-size: 2.2rem;
  line-height: 1.08;
  letter-spacing: 0;
  margin: 10px 0 16px;
}

.news-detail-content p {
  color: var(--muted);
}

.news-read-more {
  display: inline-flex;
  margin-top: 8px;
}

.cta-section {
  padding-top: 0;
}

.cta-band {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: 34px;
}

.cta-band h2 {
  font-size: 2.4rem;
  line-height: 1.08;
  letter-spacing: 0;
  margin-bottom: 0;
}

.center-action {
  display: flex;
  justify-content: center;
  margin-top: 34px;
}

.gallery-grid figure {
  margin: 0;
  overflow: hidden;
}

.gallery-grid img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.gallery-grid figcaption {
  padding: 16px;
  font-weight: 800;
}

.testimonial-grid blockquote {
  margin: 0;
  padding: 26px;
}

.testimonial-grid footer {
  color: var(--gold);
  font-weight: 800;
  margin-top: 18px;
}

.contact-copy p {
  color: var(--muted);
}

.contact-list {
  display: grid;
  gap: 12px;
  margin-top: 28px;
}

.contact-list a {
  color: var(--text);
  font-weight: 700;
}

.contact-method-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 30px;
}

.contact-method-card {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 92px;
  padding: 16px;
  border: 1px solid var(--card-border);
  border-radius: 20px;
  background:
    linear-gradient(135deg, rgba(21, 87, 176, 0.18), transparent 52%),
    var(--card);
  box-shadow: var(--shadow);
  transition: border-color var(--transition), box-shadow var(--transition), transform var(--transition);
}

.contact-method-card:hover,
.contact-method-card:focus-visible {
  border-color: color-mix(in srgb, var(--gold) 70%, var(--card-border));
  box-shadow: 0 28px 76px rgba(0, 0, 0, 0.34);
  transform: translateY(-3px);
  outline: none;
}

.contact-method-card.primary-contact {
  grid-column: span 2;
}

.contact-icon {
  flex: 0 0 46px;
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--blue), var(--gold));
  color: #fff;
  font-size: 0.86rem;
  font-weight: 900;
}

.contact-method-body {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.contact-method-body strong {
  color: var(--text);
  font-size: 1rem;
  line-height: 1.2;
}

.contact-method-body span {
  overflow-wrap: anywhere;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.35;
}

.contact-form {
  padding: 28px;
  display: grid;
  gap: 18px;
}

label {
  display: grid;
  gap: 8px;
  color: var(--text);
  font-weight: 800;
}

input,
textarea {
  width: 100%;
  min-width: 0;
  border: 1px solid var(--card-border);
  border-radius: 16px;
  padding: 14px 16px;
  background: color-mix(in srgb, var(--navy) 75%, transparent);
  color: var(--text);
  outline: none;
  font: inherit;
}

input:focus,
textarea:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 4px var(--gold-soft);
}

.form-note {
  color: var(--muted);
  font-size: 0.88rem;
  margin: 0;
}

.form-status {
  min-height: 1.35em;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 800;
  margin: 0;
}

.form-status[data-state="success"] {
  color: #2ea089;
}

.form-status[data-state="error"] {
  color: #d86b61;
}

.site-footer {
  border-top: 1px solid var(--card-border);
  padding: 28px 0;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  color: var(--muted);
  font-weight: 600;
}

.footer-inner p {
  margin: 0;
}

.footer-inner a {
  color: var(--gold);
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 700ms ease, transform 700ms ease;
}

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

@media (max-width: 1120px) {
  .container {
    width: min(100% - 32px, 1040px);
  }

  h1 {
    font-size: 4.7rem;
  }

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

  .section-heading h2 {
    font-size: 3rem;
  }

  .impact-copy h2 {
    font-size: 3.15rem;
  }

  .hero-grid,
  .two-column,
  .contact-grid {
    gap: 42px;
  }

  .achievement-gallery,
  .achievement-grid,
  .gallery-grid,
  .news-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 980px) {
  .hero-grid,
  .two-column,
  .contact-grid,
  .impact-grid,
  .cv-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: 30px;
  }

  h1 {
    font-size: 4.1rem;
  }

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

  .hero h2 {
    font-size: 1.35rem;
  }

  .section-heading h2 {
    font-size: 2.65rem;
  }

  .cv-copy h2 {
    font-size: 2.65rem;
  }

  .skills-grid,
  .card-grid,
  .article-grid,
  .focus-grid,
  .media-grid,
  .news-grid,
  .achievement-gallery,
  .impact-track,
  .testimonial-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .news-detail-card {
    grid-template-columns: 1fr;
  }

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

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

  .nav-menu {
    position: fixed;
    inset: 78px 16px auto 16px;
    z-index: 120;
    display: none;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    max-height: calc(100vh - 94px);
    max-height: calc(100dvh - 94px);
    overflow-y: auto;
    padding: 22px;
    border: 1px solid var(--card-border);
    border-radius: 20px;
    background: var(--navy);
    box-shadow: var(--shadow);
  }

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

  .nav-menu a {
    width: 100%;
    padding: 8px 0;
  }

  .theme-toggle {
    margin-top: 4px;
  }
}

@media (max-width: 640px) {
  .container {
    width: min(100% - 24px, 1120px);
  }

  .section {
    padding: 72px 0;
  }

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

  .navbar {
    height: 70px;
  }

  .nav-menu {
    inset: 70px 12px auto 12px;
    max-height: calc(100vh - 82px);
    max-height: calc(100dvh - 82px);
  }

  .brand span:last-child {
    display: none;
  }

  .hero {
    min-height: auto;
    padding: 58px 0 76px;
  }

  h1 {
    font-size: 3rem;
    line-height: 1.04;
  }

  .page-hero h1 {
    font-size: 2.65rem;
    line-height: 1.06;
  }

  .hero h2 {
    font-size: 1.18rem;
  }

  .hero-intro,
  .page-intro,
  .impact-copy p,
  .cv-copy p {
    font-size: 1rem;
  }

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

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

  .section-heading h2 {
    font-size: 2.15rem;
    line-height: 1.1;
  }

  .skills-grid,
  .card-grid,
  .article-grid,
  .focus-grid,
  .media-grid,
  .news-grid,
  .achievement-gallery,
  .impact-board,
  .impact-track,
  .testimonial-grid,
  .achievement-grid,
  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .hero-actions,
  .impact-actions,
  .cv-actions,
  .cta-band,
  .footer-inner {
    align-items: stretch;
    flex-direction: column;
  }

  .btn {
    width: 100%;
  }

  .portrait-card {
    padding: 12px;
    border-radius: 24px;
  }

  .portrait-card img {
    border-radius: 18px;
  }

  .status-card {
    position: static;
    margin-top: 14px;
  }

  .impact-copy h2 {
    font-size: 2.25rem;
    line-height: 1.08;
  }

  .cv-copy h2 {
    font-size: 2.25rem;
    line-height: 1.08;
  }

  .impact-board {
    padding: 14px;
  }

  .impact-stat {
    min-height: auto;
    padding: 16px;
  }

  .impact-stat strong {
    font-size: 2.8rem;
  }

  .contact-form {
    padding: 20px;
  }

  .contact-method-card {
    min-height: auto;
    align-items: flex-start;
  }

  .contact-method-grid,
  .contact-method-card.primary-contact {
    grid-template-columns: 1fr;
    grid-column: auto;
  }

  .news-detail-content {
    padding: 22px;
  }

  .news-detail-card img {
    min-height: 220px;
    aspect-ratio: 16 / 10;
  }

  .cta-band {
    padding: 24px;
  }
}

@media (max-width: 480px) {
  .container {
    width: min(100% - 20px, 1120px);
  }

  .section {
    padding: 60px 0;
  }

  .page-hero {
    padding: 64px 0 48px;
  }

  .navbar {
    height: 66px;
  }

  .brand-mark,
  .theme-toggle {
    width: 38px;
    height: 38px;
  }

  .nav-toggle {
    width: 40px;
    height: 40px;
    padding: 8px;
  }

  .nav-menu {
    inset: 66px 10px auto 10px;
    padding: 18px;
    border-radius: 18px;
    max-height: calc(100vh - 76px);
    max-height: calc(100dvh - 76px);
  }

  h1 {
    font-size: 2.55rem;
  }

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

  .section-heading h2,
  .impact-copy h2,
  .cv-copy h2 {
    font-size: 1.95rem;
  }

  .hero {
    padding: 48px 0 64px;
  }

  .hero-actions,
  .impact-actions,
  .trust-row {
    gap: 10px;
  }

  .btn {
    min-height: 48px;
    padding: 0 16px;
    font-size: 0.95rem;
  }

  .about-cards article,
  .skill-card,
  .achievement-card,
  .article-card,
  .focus-card,
  .media-card,
  .cv-tool,
  .impact-card,
  .testimonial-grid blockquote,
  .timeline-item,
  .card-body,
  .news-content,
  .news-detail-content {
    padding: 18px;
  }

  .timeline-item {
    grid-template-columns: 32px 1fr;
    gap: 14px;
  }

  .dot {
    width: 30px;
    height: 30px;
    border-width: 5px;
  }

  .contact-form {
    padding: 16px;
  }

  input,
  textarea {
    border-radius: 14px;
    padding: 12px 14px;
  }

  .contact-method-card {
    gap: 12px;
    padding: 14px;
    border-radius: 16px;
  }

  .contact-icon {
    flex-basis: 42px;
    width: 42px;
    height: 42px;
    border-radius: 14px;
  }

  .news-detail-card img {
    min-height: 190px;
  }

  .footer-inner {
    text-align: center;
  }
}

@media (max-width: 360px) {
  h1 {
    font-size: 2.25rem;
  }

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

  .section-heading h2,
  .impact-copy h2,
  .cv-copy h2 {
    font-size: 1.78rem;
  }

  .contact-method-card {
    flex-direction: column;
  }

  .trust-row span,
  .tags span {
    width: 100%;
    text-align: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  html {
    scroll-behavior: auto !important;
    transition: none !important;
    animation: none !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}
