@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@500;600;700&family=Inter:wght@400;500;600;700&display=swap');

:root {
  --bg: #04060c;
  --surface: #0b101f;
  --surface-alt: #13182c;
  --surface-soft: #161c32;
  --ink: #f2f3f7;
  --muted: #c3c7d6;
  --subtle: #8f95a9;
  --accent: #c3aa6a;
  --accent-strong: #b59a55;
  --plum: #4c4f72;
  --border: rgba(112, 124, 156, 0.45);
  --border-strong: rgba(195, 170, 106, 0.6);
  /* Typography */
  --font-body: 'Inter', 'Segoe UI', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  --font-heading: 'Cormorant Garamond', 'Times New Roman', serif;
  --size-h1: clamp(2.25rem, 4vw, 3.25rem);
  --size-h2: clamp(1.8rem, 3vw, 2.2rem);
  --size-h3: 1.25rem;
  --size-body: 1rem;
  --lh-body: 1.55;

  /* Spacing */
  --space-1: 0.5rem;
  --space-2: 0.75rem;
  --space-3: 1rem;
  --space-4: 1.25rem;
  --space-5: 1.5rem;
  --space-6: 2rem;

  /* Motion */
  --motion-fast: 220ms ease-out;
  --motion-medium: 240ms ease-out;

  /* Shape */
  --radius-lg: 10px;
  --radius-md: 8px;
  --radius-sm: 6px;
  --shadow-card: 0 10px 28px rgba(5, 7, 15, 0.55);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--size-body);
  line-height: var(--lh-body);
  font-weight: 400;
  background: var(--bg);
  color: var(--ink);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  position: relative;
  overflow-x: hidden;
}

.shell {
  max-width: 1120px;
  margin: 0 auto;
 padding: calc(var(--space-6) + 0.5rem) var(--space-4) calc(var(--space-6) * 2);
  position: relative;
}

@media (min-width: 1200px) {
  .shell {
    padding-left: 32px;
    padding-right: 32px;
  }
}

header,
main,
footer {
  position: relative;
  z-index: 1;
}

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

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

h1,
h2,
h3,
h4 {
 font-family: var(--font-heading);
  font-weight: 500;
  letter-spacing: -0.01em;
  margin: 0 0 0.55em;
  color: var(--ink);
}

h1 {
  font-size: var(--size-h1);
  line-height: 1.08;
}

h2 {
  font-size: var(--size-h2);
}

h3 {
font-size: var(--size-h3);
}

p {
  margin: 0 0 1.1em;
  color: var(--muted);
}

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

a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -3px;
  width: 100%;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--motion-fast);
  opacity: 0.8;
}

a:hover::after {
  transform: scaleX(1);
}

a.btn::after,
a.brand::after,
a.nav__link::after {
  display: none;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.7rem 1.4rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--accent-strong);
  font-weight: 600;
  letter-spacing: 0.01em;
  color: #0c101f;
  background: var(--accent);
transition: background-color var(--motion-fast), border-color var(--motion-fast), color var(--motion-fast);
}

.btn:hover {
  background: var(--accent-strong);
  border-color: var(--accent-strong);
}

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

.btn.ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--plum);
}

.btn.ghost:hover {
  color: var(--accent);
  border-color: var(--accent);
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
}

.small {
  font-size: 0.85rem;
}

.muted {
  color: var(--muted);
}
.meta {
  font-size: 0.9rem;
  color: var(--subtle);
}

.eyebrow {
  letter-spacing: 0.05em;
  text-transform: uppercase;
  font-size: 0.74rem;
  font-weight: 600;
  color: var(--subtle);
}

.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
gap: var(--space-4);
  margin-bottom: var(--space-5);
}

.section-heading h2 {
  margin: 0;
}

.section-heading .link {
  font-weight: 600;
  color: var(--accent);
}

.section-heading .link:hover {
  color: var(--ink);
}

.section-intro {
  max-width: 720px;
 margin: -0.2rem 0 var(--space-5);
  color: var(--muted);
}

.divider {
  width: 100%;
  height: 1px;
  margin: var(--space-6) 0;
  background: rgba(112, 124, 156, 0.35);
  border: none;
}

.site-header {
  position: sticky;
  top: 16px;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.6rem;
padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: rgba(8, 12, 22, 0.92);
  box-shadow: 0 10px 24px rgba(4, 6, 12, 0.5);
}

.brand {
  font-family: 'Cormorant Garamond', 'Times New Roman', serif;
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--ink);
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}

.nav__link {
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  color: var(--muted);
  font-weight: 500;
transition: color var(--motion-fast), border-color var(--motion-fast);
}

.nav__link[aria-current='page'] {
  color: var(--ink);
  border-color: var(--accent);
}

.nav__link:hover {
  color: var(--ink);
  border-color: var(--plum);
}

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

  .nav {
    justify-content: center;
  }
}

.hero {
  position: relative;
  margin-top: calc(var(--space-6) + 1rem);
  display: flex;
  align-items: stretch;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background-image:
    linear-gradient(90deg, rgba(16, 18, 24, 0.72) 0%, rgba(16, 18, 24, 0.46) 42%, rgba(16, 18, 24, 0.18) 100%),
    url("https://raw.githubusercontent.com/michaelcbarros/site/main/assets/images/swpaca2023.JPG");
  background-position: center center, center 58%;
  background-size: cover, cover;
  background-repeat: no-repeat, no-repeat;
  min-height: clamp(320px, 52vw, 560px);
  box-shadow: var(--shadow);
}

.hero__content {
  max-width: 740px;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-end;
  gap: var(--space-5);
  padding: clamp(1.5rem, 4vw, 3rem);
}

.hero__content h1 {
  color: var(--ink);
  max-width: 17ch;
  text-wrap: balance;
  margin: 0;
}

.hero__bio {
  max-width: 720px;
  color: var(--muted);
   margin: 0;
}

.hero__meta {
  margin-top: 0.2rem;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  align-items: flex-start;
}

.hero__meta .badge-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: var(--space-2);
  font-size: 0.85rem;
  color: var(--ink);
}

.hero__meta .cta-row {
  justify-content: flex-start;
}

.hero .badge {
  border-color: rgba(255, 255, 255, 0.45);
  background: rgba(12, 16, 24, 0.35);
  color: var(--ink);
}

.hero .btn.ghost {
  border-color: rgba(255, 255, 255, 0.65);
  color: var(--ink);
}

.hero .btn.ghost:hover {
  border-color: var(--ink);
  background: rgba(255, 255, 255, 0.12);
}

@media (max-width: 720px) {
  .hero {
    min-height: 380px;
    background-position: center center, 66% center;
  }

  .hero__content {
    align-items: center;
    text-align: center;
    padding: var(--space-5);
  }

  .hero__meta,
  .hero__meta .badge-row,
  .hero__meta .cta-row {
    align-items: center;
    justify-content: center;
  }
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.35rem 0.6rem;
  border-radius: var(--radius-sm);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border: 1px solid rgba(126, 135, 164, 0.45);
  background: transparent;
  color: var(--subtle);
}

.grid {
  display: grid;
  gap: 22px;
}

@media (min-width: 900px) {
  .grid.cols-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .grid.cols-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.card,
.flip-face,
.flip-back,
.feature-box,
.section-card,
.info-card {
  background: var(--surface-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
padding: var(--space-4);
  box-shadow: var(--shadow-card);
  color: var(--ink);
    transition: border-color var(--motion-fast), box-shadow var(--motion-fast);
}

.card {
  position: relative;
  overflow: hidden;
}

.card > *:not(.card__motif) {
  position: relative;
  z-index: 1;
}

.card__motif {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  opacity: 0.32;
}

.card__motif svg {
  width: 68px;
  height: 68px;
  fill: none;
  stroke: rgba(146, 153, 182, 0.55);
  stroke-linecap: square;
  stroke-linejoin: miter;
}
.card--waypoint {
  background: linear-gradient(135deg, rgba(234, 245, 255, 0.95), rgba(204, 227, 255, 0.95));
  border-color: rgba(122, 176, 221, 0.6);
}
.card--waypoint .card__motif svg {
  stroke: rgba(48, 98, 142, 0.45);
}
.card--waypoint h3,
.card--waypoint p {
  color: #0f2740;
}

.card--waypoint .badge {
  color: #0f2740;
  border-color: rgba(15, 39, 64, 0.25);
  background: rgba(255, 255, 255, 0.35);
}
.card--zelda {
  background: radial-gradient(circle at 30% 30%, rgba(32, 74, 38, 0.9), rgba(18, 44, 24, 0.92));
  border-color: rgba(116, 176, 92, 0.5);
}
.card--zelda .card__motif svg {
  stroke: rgba(218, 200, 120, 0.7);
  fill: rgba(218, 200, 120, 0.2);
}
.card--zelda h3,
.card--zelda p,
.card--zelda .badge {
  color: rgba(237, 246, 238, 0.95);
}
.card--dissertation {
  background: linear-gradient(160deg, rgba(34, 74, 129, 0.92), rgba(20, 48, 92, 0.92));
  border-color: rgba(120, 170, 230, 0.5);
}
.card--dissertation .card__motif svg {
  stroke: rgba(188, 216, 255, 0.65);
}
.card--dissertation h3,
.card--dissertation p,
.card--dissertation .badge {
  color: rgba(233, 240, 252, 0.96);
}

#projects-grid .card {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.4rem;
  min-height: 110px;
  padding: 1rem 1.1rem;
  text-align: left;
  align-items: flex-start;
  transition: border-color var(--motion-fast), box-shadow var(--motion-fast), transform var(--motion-medium);
}

#projects-grid .card .card__title {
  margin: 0;
  font-size: clamp(1.1rem, 2.4vw, 1.3rem);
  line-height: 1.3;
  font-weight: 600;
  text-align: left;
  width: 100%;
}

#projects-grid .card:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

#projects-grid .card__motif,
#projects-grid .card .card__type {
  display: none;
}

.card:hover,
.flip:hover .flip-face,
.flip:hover .flip-back,
.feature-box:hover,
.section-card:hover,
.info-card:hover {
  border-color: var(--border-strong);
  box-shadow: 0 16px 34px rgba(5, 7, 15, 0.45);
}

.card h3 {
  margin-top: 0.25rem;
  margin-bottom: 0.4rem;
}

.insight-grid {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  margin-top: 1.6rem;
}

.insight-card {
  background: var(--surface-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
padding: var(--space-4);
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
gap: var(--space-2);
  transition: border-color var(--motion-fast), box-shadow var(--motion-fast);
}

.insight-card h3 {
  margin: 0;
  font-size: 1.15rem;
}

.insight-card p {
  margin: 0;
  color: var(--muted);
}

.insight-card:hover,
.insight-card:focus-within {
  border-color: var(--border-strong);
  box-shadow: 0 16px 34px rgba(5, 7, 15, 0.45);
}

.reading-grid {
margin-top: var(--space-5);
}

.reading-highlight {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  background: var(--surface-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
  box-shadow: var(--shadow-card);
  flex-wrap: wrap;
}

.reading-highlight .section-intro {
  margin: 0;
}

.reading-highlight .btn {
  white-space: nowrap;
}

@media (max-width: 640px) {
  .reading-highlight {
    align-items: flex-start;
    flex-direction: column;
  }
}

.reading-card {
  align-items: center;
  text-align: center;
  gap: 0.75rem;
}

.reading-card h3 {
  font-size: 1.1rem;
}

.reading-card p {
  color: var(--muted);
}

.page--reading .reading-catalog {
  display: flex;
  flex-direction: column;
gap: calc(var(--space-6) + 1rem);
  margin-top: var(--space-6);
}

.page--reading .reading-era + .reading-era {
  padding-top: 1.4rem;
  border-top: 1px solid var(--surface-soft);
}

.era-heading {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.era-heading h2 {
  margin: 0;
}

.subgenre-grid {
  display: grid;
  gap: 2.2rem;
}

@media (min-width: 960px) {
  .subgenre-grid {
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  }
}

.reading-subgenre h3 {
  margin: 0 0 0.85rem;
}

.cover-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 0;
  border-radius: var(--radius-md);
  background: var(--surface-soft);
  border: 1px solid var(--border);
}

.cover-card {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  transition: transform var(--motion-fast), box-shadow var(--motion-fast);
}

.cover-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--motion-fast);
}

.cover-card:hover,
.cover-card:focus-visible {
  transform: scale(1.05);
  z-index: 2;
  box-shadow: 0 16px 34px rgba(4, 6, 12, 0.55);
}

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

.cover-card:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}

.feature-grid {
  display: grid;
  gap: 1.8rem;
}

@media (min-width: 960px) {
  .feature-grid.two-col {
    grid-template-columns: minmax(0, 360px) minmax(0, 1fr);
  }
}

.feature-media {
  position: relative;
}

.feature-media img {
  border-radius: var(--radius-md);
  box-shadow: 0 14px 32px rgba(5, 7, 18, 0.5);
}

.feature-media--avatar {
  width: min(260px, 100%);
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: 0 18px 32px rgba(5, 7, 18, 0.5);
  overflow: hidden;
  position: relative;
}

.feature-media--avatar::after {
  content: '';
  position: absolute;
  inset: 18%;
  border-radius: 50%;
  border: 1px solid rgba(146, 153, 182, 0.4);
}

.feature-body,
.feature-copy,
.book-copy {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  max-width: none;
}

.book-cover {
  width: 100%;
  border-radius: var(--radius-md);
  box-shadow: 0 18px 36px rgba(5, 7, 18, 0.55);
}

.book-copy .book-desc p {
  margin-bottom: 0.85rem;
  color: var(--muted);
}

.flip {
  perspective: 1400px;
}

.flip-inner {
  position: relative;
  transform-style: preserve-3d;
 transition: transform var(--motion-medium);
  min-height: 220px;
}

.flip:hover .flip-inner {
  transform: rotateY(180deg);
}

.flip-face,
.flip-back {
  backface-visibility: hidden;
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.flip-back {
  transform: rotateY(180deg);
}

.empty {
  border-radius: var(--radius-md);
  border: 1px dashed rgba(126, 135, 164, 0.5);
  padding: 1.2rem;
  text-align: center;
  background: var(--surface);
  color: var(--muted);
}

footer {
  margin-top: 72px;
  text-align: center;
  color: var(--subtle);
  font-size: 0.95rem;
}

.footer-tagline {
  margin-bottom: 0.5rem;
  font-size: 0.85rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--subtle);
}
.appearances {
  margin-top: var(--space-6);
}

.appearance-list {
  list-style: none;
  padding: 0;
  margin: var(--space-3) 0 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.appearance-list li {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: var(--surface-alt);
  box-shadow: var(--shadow-card);
}

.appearance__meta {
  font-size: 0.9rem;
  color: var(--subtle);
}

.footer-links {
  margin: 0 0 1rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.85rem 1.2rem;
  font-size: 0.85rem;
  color: var(--muted);
}

.footer-links a {
  color: inherit;
}

code {
  font-family: 'Fira Code', 'SFMono-Regular', Consolas, 'Liberation Mono', monospace;
  font-size: 0.9rem;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 0.25rem 0.45rem;
  border-radius: var(--radius-sm);
}

input[type='search'],
input[type='text'],
button {
  font: inherit;
}

input[type='search'],
textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--ink);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

input[type='search']:focus,
textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 2px rgba(195, 170, 106, 0.25);
}

.filter-btn {
  padding: 0.45rem 0.9rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: transparent;
  color: var(--muted);
  cursor: pointer;
transition: border-color var(--motion-fast), color var(--motion-fast);
}

.filter-btn:hover {
  border-color: var(--plum);
  color: var(--ink);
}

.filter-btn.active {
  background: var(--accent);
  border-color: var(--accent-strong);
  color: #0c101f;
  box-shadow: none;
}

.page-header {
  margin-top: 72px;
  margin-bottom: 36px;
}

.page-header .page-title {
  font-size: clamp(2rem, 4vw, 3rem);
  color: var(--ink);
}

.page-header .page-kicker {
  font-size: 1.05rem;
  max-width: 720px;
}

.detail-grid {
  display: grid;
  gap: 24px;
}

@media (min-width: 960px) {
  .detail-grid.two-col {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

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

.meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 0.8rem;
  font-size: 0.85rem;
  color: var(--subtle);
}

address {
  font-style: normal;
}

.projects-section { margin-top: 3rem; }

.projects-cards {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: var(--space-4);
}

.projects-toprow {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
}

/* --- Projects: field pills --- */
.projects-controls { margin-top: 1.25rem; margin-bottom: 1.25rem; }

.pillbar {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
}

.pill {
  appearance: none;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.04);
  color: rgba(255,255,255,.82);
  padding: .5rem .75rem;
  border-radius: 999px;
  font-size: .9rem;
  letter-spacing: .01em;
  cursor: pointer;
  transition: transform .12s ease, background .12s ease, border-color .12s ease;
}

.pill:hover { transform: translateY(-1px); border-color: rgba(255,255,255,.22); }
.pill--active { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.26); }

/* --- Projects: shared items (preview + directory) --- */
.project-item {
  border: 1px solid rgba(255,255,255,.12);
  border-left: 4px solid transparent;
  border-radius: 12px;
  background: rgba(18, 22, 38, .7);
  box-shadow: var(--shadow-card);
  transition: transform .16s ease, border-color .16s ease, box-shadow .16s ease, background .16s ease;
}

.project-item:hover,
.project-item:focus-within {
  transform: translateY(-1px);
  border-color: rgba(255,255,255,.2);
  box-shadow: 0 16px 34px rgba(5, 7, 15, 0.45);
}

.project-item__header {
  width: 100%;
  padding: .7rem .9rem;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: .6rem;
  background: transparent;
  border: none;
  color: inherit;
  cursor: pointer;
  text-align: left;
}

.project-item--directory .project-item__header { padding: .75rem 1rem; }

.project-item__header:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 8px;
}

.project-item__type {
  font-size: .68rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: rgba(255,255,255,.68);
  font-weight: 700;
}

.project-item__title {
  margin: 0;
  font-size: 1rem;
  color: rgba(255,255,255,.92);
  line-height: 1.25;
}

.project-item__chevron {
  width: .6rem;
  height: .6rem;
  border-right: 2px solid rgba(255,255,255,.6);
  border-bottom: 2px solid rgba(255,255,255,.6);
  transform: rotate(45deg);
  transition: transform .18s ease;
}

.project-item.is-open .project-item__chevron { transform: rotate(-135deg); }

.project-item__body {
  display: none;
  padding: 0 1rem 0.9rem 1rem;
  color: rgba(255,255,255,.82);
  line-height: 1.5;
  animation: project-item-fade .18s ease;
}

.project-item.is-open .project-item__body { display: block; }

.project-item__body .summary { margin: 0 0 .35rem; }
.project-item__body .status { margin: 0 0 .3rem; color: rgba(255,255,255,.85); }
.project-item__links { font-size: .92rem; }
.project-item__links a { color: var(--ink); }

.project-item--preview .project-item__body { display: none; }
.project-item--preview .project-item__header { padding: .65rem .85rem; }
.project-item--preview .project-item__chevron { opacity: .6; }

@keyframes project-item-fade {
  from { opacity: 0; transform: translateY(-2px); }
  to { opacity: 1; transform: translateY(0); }
}

/* --- Accent system --- */
.project-item[data-accent="gold"] { border-left-color: rgba(215, 176, 92, .9); }
.project-item[data-accent="green"] { border-left-color: rgba(88, 185, 120, .9); }
.project-item[data-accent="violet"] { border-left-color: rgba(148, 120, 210, .9); }
.project-item[data-accent="blue"] { border-left-color: rgba(120, 170, 215, .9); }
.project-item[data-accent="neutral"] { border-left-color: rgba(255, 255, 255, .55); }
.project-item[data-accent="white"] { border-left-color: rgba(255, 255, 255, .85); box-shadow: inset 0 1px 0 rgba(255,255,255,.12); }

.project-item.is-hero {
  border-width: 1.5px;
  border-left-width: 4px;
  background: rgba(255,255,255,.06);
  border-top-color: rgba(255,255,255,.18);
  border-right-color: rgba(255,255,255,.18);
  border-bottom-color: rgba(255,255,255,.18);
}

/* --- Latest update feature --- */
.latest-update-card {
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 16px;
  padding: 1.25rem 1.4rem;
  background: radial-gradient(circle at 30% 25%, rgba(148, 120, 210, .14), transparent 55%),
              radial-gradient(circle at 80% 70%, rgba(148, 120, 210, .1), transparent 60%),
              rgba(12, 14, 24, 0.7);
}

.latest-update-card[data-accent="violet"] {
  background: radial-gradient(circle at 30% 25%, rgba(148, 120, 210, .16), transparent 55%),
              radial-gradient(circle at 80% 70%, rgba(148, 120, 210, .12), transparent 60%),
              rgba(12, 14, 24, 0.7);
}

.latest-update__label {
  font-size: .8rem;
  letter-spacing: .03em;
  text-transform: uppercase;
  color: rgba(255,255,255,.7);
}

.latest-update__title {
  margin: .2rem 0 .4rem;
  font-size: 1.3rem;
  color: rgba(255,255,255,.95);
}

.latest-update__text {
  margin: 0 0 .6rem;
  color: rgba(255,255,255,.85);
  line-height: 1.55;
}

.latest-update__link {
  color: var(--ink);
  font-weight: 600;
}

/* --- Utilities --- */
.is-hidden { display: none !important; }
