/* Abdul Gaffar Haadi — portfolio */
:root {
  --bg: #0f1419;
  --bg-elevated: #161d27;
  --bg-card: #1c2533;
  --surface: rgba(255, 255, 255, 0.04);
  --border: rgba(255, 255, 255, 0.08);
  --text: #e8eaed;
  --text-muted: #9aa5b8;
  --accent: #3ecf8e;
  --accent-dim: #2a9d66;
  --accent-glow: rgba(62, 207, 142, 0.25);
  --gold: #e8c547;
  --radius: 14px;
  --radius-sm: 10px;
  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Source Sans 3", system-ui, -apple-system, sans-serif;
  --shadow: 0 20px 50px rgba(0, 0, 0, 0.45);
  --header-h: 4.25rem;
  --max: 72rem;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  background-image:
    radial-gradient(ellipse 120% 80% at 50% -30%, rgba(62, 207, 142, 0.12), transparent 55%),
    radial-gradient(ellipse 60% 40% at 100% 0%, rgba(232, 197, 71, 0.06), transparent 50%);
  background-attachment: fixed;
}

a {
  color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition: color 0.2s var(--ease);
}

a:hover {
  color: #5ee4a8;
}

a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

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

.skip-link {
  position: absolute;
  top: -120px;
  left: 1rem;
  z-index: 200;
  padding: 0.55rem 1rem;
  background: var(--accent);
  color: #04120a;
  font-weight: 600;
  font-size: 0.9rem;
  border-radius: 8px;
  text-decoration: none;
}

.skip-link:focus {
  top: 1rem;
}

/* ——— Header ——— */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  border-bottom: 1px solid var(--border);
  background: rgba(15, 20, 25, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.site-header__inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 1.25rem;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.logo {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--text);
  text-decoration: none;
  letter-spacing: -0.02em;
  white-space: nowrap;
}

.logo:hover {
  color: var(--accent);
}

.logo span {
  color: inherit;
  font-weight: inherit;
  font-size: 1em;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 1.1rem;
  height: 2px;
  margin: 0 auto;
  background: var(--text);
  border-radius: 1px;
  transition: transform 0.25s var(--ease);
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.nav-toggle:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.nav {
  display: flex;
  align-items: center;
  gap: 0.1rem;
  flex-wrap: nowrap;
  justify-content: flex-end;
}

.nav a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 500;
  padding: 0.38rem 0.55rem;
  border-radius: 8px;
  transition: color 0.2s, background 0.2s var(--ease);
  white-space: nowrap;
}

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

.nav-more {
  position: relative;
}

.nav-more summary {
  list-style: none;
  cursor: pointer;
  color: var(--text-muted);
  font-size: 0.85rem;
  font-weight: 500;
  padding: 0.38rem 0.55rem;
  border-radius: 8px;
  user-select: none;
}

.nav-more summary::-webkit-details-marker {
  display: none;
}

.nav-more[open] summary,
.nav-more summary:hover {
  color: var(--text);
  background: var(--surface);
}

.nav-more__menu {
  position: absolute;
  right: 0;
  top: calc(100% + 0.35rem);
  min-width: 12rem;
  padding: 0.45rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: rgba(15, 20, 25, 0.98);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.35);
  display: grid;
  gap: 0.2rem;
  z-index: 120;
}

.nav-more__menu a {
  display: block;
  padding: 0.48rem 0.6rem;
  font-size: 0.84rem;
}

@media (max-width: 1240px) {
  .nav-toggle {
    display: flex;
  }

  .nav {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    padding: 1rem 1.25rem 1.25rem;
    background: rgba(15, 20, 25, 0.97);
    border-bottom: 1px solid var(--border);
    gap: 0.25rem;
    transform: translateY(-120%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.35s var(--ease), opacity 0.25s var(--ease);
  }

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

  .nav a {
    padding: 0.75rem 1rem;
    border-radius: var(--radius-sm);
    font-size: 0.92rem;
  }

  .nav-more {
    position: static;
  }

  .nav-more summary {
    padding: 0.75rem 1rem;
    border-radius: var(--radius-sm);
    font-size: 0.92rem;
  }

  .nav-more__menu {
    position: static;
    min-width: 0;
    margin-top: 0.2rem;
    box-shadow: none;
    border: 1px solid rgba(255, 255, 255, 0.06);
    background: rgba(255, 255, 255, 0.02);
  }

  .nav-more__menu a {
    padding: 0.6rem 0.8rem;
    font-size: 0.9rem;
  }
}

/* ——— Layout ——— */
main {
  flex: 1;
  max-width: var(--max);
  margin: 0 auto;
  padding: 2.5rem 1.25rem 4rem;
  width: 100%;
}

.page-hero {
  margin-bottom: 2.75rem;
  animation: fadeUp 0.7s var(--ease) both;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.page-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 2.75rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin: 0 0 0.5rem;
}

.page-hero .lede {
  font-size: 1.15rem;
  color: var(--text-muted);
  max-width: 42rem;
  margin: 0;
}

.page-hero .philosophy-hook {
  font-size: 1.06rem;
  color: var(--text-muted);
  max-width: 44rem;
  margin: 0.9rem 0 0;
  line-height: 1.65;
}

.eyebrow {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.65rem;
}

/* ——— Home hero ——— */
.hero {
  display: grid;
  gap: 2.5rem;
  align-items: center;
  padding: 1rem 0 3rem;
  animation: fadeUp 0.8s var(--ease) both;
}

@media (min-width: 900px) {
  .hero {
    grid-template-columns: 1fr 280px;
    padding: 2rem 0 4rem;
  }
}

.hero__text h1 {
  font-family: var(--font-display);
  font-size: clamp(2.35rem, 6vw, 3.35rem);
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1.08;
  margin: 0 0 0.35rem;
}

.hero__text .name-line {
  display: block;
  background: linear-gradient(120deg, var(--text) 0%, var(--accent) 55%, var(--gold) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero__text .tagline {
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin: 0 0 1.25rem;
}

.hero__text .intro {
  font-size: 1.125rem;
  color: var(--text-muted);
  max-width: 38rem;
  margin: 0 0 0.95rem;
  line-height: 1.65;
}

.hero__text .intro:last-of-type {
  margin-bottom: 1.75rem;
}

.home-overview {
  max-width: 42rem;
  color: var(--text-muted);
  font-size: 1.05rem;
  line-height: 1.68;
  margin: 0 0 2rem;
}

.home-overview__label {
  display: block;
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.65rem;
}

.personality-panel {
  margin: 0 0 2.2rem;
  padding: 1.35rem 1.45rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-left: 3px solid var(--gold);
  border-radius: var(--radius);
  display: grid;
  gap: 1rem;
}

@media (min-width: 860px) {
  .personality-panel {
    grid-template-columns: 1.2fr 1fr;
    align-items: start;
  }
}

.personality-panel h2 {
  margin: 0 0 0.55rem;
  font-family: var(--font-display);
  font-size: 1.35rem;
  color: var(--text);
}

.personality-panel p {
  margin: 0;
  color: var(--text-muted);
}

.personality-list {
  margin: 0;
  padding-left: 1.1rem;
  color: var(--text-muted);
}

.personality-list li + li {
  margin-top: 0.45rem;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.75rem 1.35rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

.btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.btn--primary {
  background: linear-gradient(135deg, var(--accent-dim), var(--accent));
  color: #04120a;
  box-shadow: 0 8px 28px var(--accent-glow);
}

.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 36px var(--accent-glow);
  color: #04120a;
}

.btn--ghost {
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--border);
}

.btn--ghost:hover {
  border-color: rgba(62, 207, 142, 0.35);
  color: var(--text);
}

.hero__portrait {
  justify-self: center;
}

.portrait {
  width: 290px;
  height: 290px;
  border-radius: 50%;
  background: linear-gradient(145deg, var(--bg-card), var(--bg-elevated));
  border: 2px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 600;
  color: var(--accent);
  box-shadow: var(--shadow), 0 0 0 1px rgba(255, 255, 255, 0.05) inset;
}

@media (min-width: 900px) {
  .portrait {
    width: 360px;
    height: 360px;
    font-size: 2.85rem;
  }
}

.portrait.portrait--photo {
  display: block;
  position: relative;
  overflow: hidden;
  padding: 0;
  font-size: 0;
  line-height: 0;
  border-radius: 50%;
  aspect-ratio: 1;
}

.portrait--photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
  border-radius: 50%;
  filter: brightness(1.12) contrast(1.06) saturate(1.05);
}

/* ——— Cards grid ——— */
.card-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  margin-top: 2.5rem;
}

.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.35rem 1.4rem;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.25s var(--ease), transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
  animation: fadeUp 0.6s var(--ease) both;
}

.card:nth-child(1) { animation-delay: 0.05s; }
.card:nth-child(2) { animation-delay: 0.1s; }
.card:nth-child(3) { animation-delay: 0.15s; }
.card:nth-child(4) { animation-delay: 0.2s; }
.card:nth-child(5) { animation-delay: 0.25s; }
.card:nth-child(6) { animation-delay: 0.3s; }
.card:nth-child(7) { animation-delay: 0.35s; }

.card:hover {
  border-color: rgba(62, 207, 142, 0.35);
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
}

.card h2 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 600;
  margin: 0 0 0.5rem;
  color: var(--text);
}

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

.card .card__arrow {
  margin-top: 1rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent);
}

.resume-download-panel {
  margin-top: 2rem;
  padding: 1.2rem 1.3rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius);
}

.resume-download-panel h2 {
  margin: 0 0 0.45rem;
  font-family: var(--font-display);
  font-size: 1.2rem;
}

.resume-download-panel p {
  margin: 0 0 0.8rem;
  color: var(--text-muted);
}

/* ——— Prose ——— */
.prose {
  max-width: 48rem;
}

.prose > * + * {
  margin-top: 1.1rem;
}

.prose p {
  color: var(--text-muted);
  margin: 0;
}

.prose strong {
  color: var(--text);
}

.prose h2 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
  margin: 2.25rem 0 0.75rem;
  color: var(--text);
  letter-spacing: -0.02em;
}

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

.prose ul {
  margin: 0.75rem 0 0;
  padding-left: 1.25rem;
  color: var(--text-muted);
}

.prose li + li {
  margin-top: 0.4rem;
}

/* ——— Competency / section cards ——— */
.section-stack {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin-top: 1.5rem;
}

.section-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem 1.65rem;
  border-left: 3px solid var(--accent);
}

.section-card h2 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  margin: 0 0 0.65rem;
  color: var(--text);
}

.section-card p {
  margin: 0;
  color: var(--text-muted);
  font-size: 1rem;
}

.competency-matrix {
  margin-top: 1.75rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.2rem 1.2rem 1.3rem;
}

.competency-matrix h2 {
  margin: 0 0 0.85rem;
  font-family: var(--font-display);
  font-size: 1.25rem;
}

/* ——— Resume ——— */
.resume {
  max-width: 52rem;
}

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

.resume-header h1 {
  font-family: var(--font-display);
  font-size: 2rem;
  margin: 0 0 0.35rem;
}

.resume-meta {
  color: var(--text-muted);
  font-size: 0.98rem;
}

.resume-meta a {
  color: var(--accent);
}

.resume-download {
  margin: 0.9rem 0 0;
}

.resume h2 {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 2rem 0 0.85rem;
  padding-bottom: 0.35rem;
  border-bottom: 1px solid var(--border);
}

.resume h3 {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text);
  margin: 1.25rem 0 0.15rem;
}

.resume .role-meta {
  font-size: 0.92rem;
  color: var(--text-muted);
  margin: 0 0 0.5rem;
}

.resume ul {
  margin: 0;
  padding-left: 1.2rem;
  color: var(--text-muted);
  font-size: 0.98rem;
}

.resume li + li {
  margin-top: 0.35rem;
}

/* ——— Quote / evidence ——— */
.quote-grid {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin-top: 1.5rem;
}

.quote-card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem 1.5rem 1.5rem 1.65rem;
}

.quote-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 1rem;
  bottom: 1rem;
  width: 3px;
  border-radius: 0 3px 3px 0;
  background: linear-gradient(180deg, var(--accent), var(--gold));
}

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

/* ——— Contact ——— */
.contact-grid {
  display: grid;
  gap: 1.5rem;
  margin-top: 1.5rem;
}

@media (min-width: 700px) {
  .contact-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.contact-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
}

.contact-card h2 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  margin: 0 0 0.75rem;
}

.contact-card p,
.contact-card address {
  margin: 0;
  color: var(--text-muted);
  font-style: normal;
  line-height: 1.6;
}

/* ——— Footer ——— */
.site-footer {
  margin-top: auto;
  border-top: 1px solid var(--border);
  padding: 2rem 1.25rem;
  background: var(--bg-elevated);
}

.site-footer__inner {
  max-width: var(--max);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.site-footer a {
  color: var(--accent);
}

/* ——— Utility ——— */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

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

.mt-0 {
  margin-top: 0;
}

/* ——— Artifacts index ——— */
.artifacts-intro {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem 1.65rem;
  margin-bottom: 2rem;
  border-left: 3px solid var(--gold);
}

.artifacts-intro h2 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  margin: 0 0 0.75rem;
  color: var(--text);
}

.artifacts-intro p {
  margin: 0;
  color: var(--text-muted);
  font-size: 1.02rem;
  line-height: 1.65;
}

.artifact-list {
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
}

.artifact-guidance {
  margin: 0 0 1.4rem;
  padding: 1.2rem 1.35rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  border-left: 3px solid var(--accent);
}

.artifact-guidance h2 {
  margin: 0 0 0.6rem;
  font-family: var(--font-display);
  font-size: 1.2rem;
}

.artifact-guidance ul {
  margin: 0;
  padding-left: 1.1rem;
  color: var(--text-muted);
}

.artifact-guidance li + li {
  margin-top: 0.4rem;
}

.artifact-preview {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  padding: 1.35rem 1.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

@media (min-width: 768px) {
  .artifact-preview {
    grid-template-columns: 1fr auto;
    align-items: start;
  }
}

.artifact-preview:hover {
  border-color: rgba(62, 207, 142, 0.25);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.25);
}

.artifact-preview__num {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.35rem;
}

.artifact-preview h2 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  margin: 0 0 0.5rem;
  color: var(--text);
}

.artifact-preview p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.98rem;
  line-height: 1.6;
}

.artifact-preview__meta {
  margin-top: 0.55rem !important;
  font-size: 0.9rem !important;
  color: var(--gold) !important;
}

.artifact-preview__actions {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  align-items: stretch;
  justify-content: center;
}

@media (min-width: 768px) {
  .artifact-preview__actions {
    align-items: flex-end;
    min-width: 8.5rem;
  }
}

.btn--sm {
  padding: 0.55rem 1.1rem;
  font-size: 0.88rem;
}

/* ——— Artifact detail ——— */
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text-muted);
  text-decoration: none;
  margin-bottom: 1.25rem;
}

.competency-nav-link {
  margin-top: 1.1rem;
}

.competency-nav-link .back-link {
  margin-bottom: 0;
  font-weight: 700;
  color: var(--accent);
}

.back-link:hover {
  color: var(--accent);
}

.artifact-detail .page-hero h1 {
  font-size: clamp(1.65rem, 4vw, 2.15rem);
}

.artifact-media {
  margin-bottom: 1.5rem;
  padding: 1.35rem 1.45rem;
  background: linear-gradient(145deg, rgba(62, 207, 142, 0.1) 0%, rgba(28, 37, 51, 0.65) 45%, rgba(22, 29, 39, 0.5) 100%);
  border: 1px solid rgba(62, 207, 142, 0.22);
  border-radius: var(--radius);
  box-shadow: 0 4px 22px rgba(0, 0, 0, 0.18);
}

.artifact-media__title {
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 1rem;
  padding: 0;
  border: none;
}

.artifact-media__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 0;
}

.artifact-media__actions:last-child {
  margin-bottom: 0;
}

.artifact-media__preview {
  margin: 0 0 1rem;
  border-radius: calc(var(--radius) - 2px);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(0, 0, 0, 0.2);
}

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

.artifact-section {
  margin-bottom: 2rem;
}

.artifact-section h2 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--text);
  margin: 0 0 0.65rem;
  padding-bottom: 0.4rem;
  border-bottom: 1px solid var(--border);
}

.artifact-section p {
  margin: 0;
  color: var(--text-muted);
  line-height: 1.65;
}

.artifact-meta-box {
  display: grid;
  gap: 1rem;
  margin-top: 2rem;
  padding: 1.25rem 1.4rem;
  background: var(--bg-elevated);
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

@media (min-width: 560px) {
  .artifact-meta-box {
    grid-template-columns: 1fr 1fr;
  }
}

.artifact-meta-box dt {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin: 0 0 0.35rem;
}

.artifact-meta-box dd {
  margin: 0;
  color: var(--text);
  font-weight: 600;
  line-height: 1.5;
}

/* ——— Philosophy media layout ——— */
.philosophy-grid {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin-top: 1.75rem;
}

.philosophy-block {
  display: grid;
  gap: 1.1rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.15rem;
}

.philosophy-block__text h2 {
  font-family: var(--font-display);
  font-size: 1.28rem;
  margin: 0 0 0.7rem;
}

.philosophy-block__text p {
  margin: 0;
  color: var(--text-muted);
}

.philosophy-evidence-note {
  margin-top: 0.7rem !important;
  padding-top: 0.55rem;
  border-top: 1px dashed rgba(255, 255, 255, 0.14);
  font-size: 0.95rem;
  color: var(--gold) !important;
}

.philosophy-block__media img {
  width: 100%;
  border-radius: calc(var(--radius) - 4px);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

@media (min-width: 860px) {
  .philosophy-block {
    grid-template-columns: 1.1fr 0.9fr;
    align-items: center;
    padding: 1.35rem;
  }

  .philosophy-block--reverse {
    grid-template-columns: 0.9fr 1.1fr;
  }

  .philosophy-block--reverse .philosophy-block__text {
    order: 2;
  }

  .philosophy-block--reverse .philosophy-block__media {
    order: 1;
  }
}

/* ——— Professional development plan ——— */
.toggle-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin: 1.25rem 0;
  overflow: hidden;
}

.toggle-card summary {
  cursor: pointer;
  list-style: none;
  padding: 1rem 1.2rem;
  font-weight: 700;
  color: var(--text);
  background: rgba(255, 255, 255, 0.03);
}

.toggle-card summary::-webkit-details-marker {
  display: none;
}

.toggle-card[open] summary {
  border-bottom: 1px solid var(--border);
}

.table-wrap {
  overflow-x: auto;
}

.plan-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 920px;
}

.plan-table th,
.plan-table td {
  border: 1px solid var(--border);
  padding: 0.8rem;
  vertical-align: top;
  font-size: 0.92rem;
  color: var(--text-muted);
}

.plan-table th {
  color: var(--text);
  background: rgba(62, 207, 142, 0.08);
  text-align: left;
  font-weight: 700;
}

.plan-table--compact {
  min-width: 760px;
}
