/* ==========================================================================
   Maria Romana: Portfolio stylesheet
   "Archive meets concert hall"

   Contents
   1.  Design tokens (colours, fonts, spacing): light & dark
   2.  Base / reset
   3.  Utilities (container, sr-only, skip link, icons, TODO markers)
   4.  Navigation
   5.  Buttons
   6.  Hero
   7.  Sections & section headings
   8.  Cards, entries, badges, tags
   9.  About stats
   10. Education extras (grade, scholarship)
   11. Timeline (work experience)
   12. Volunteering / international extras
   13. Music section
   14. Skills (languages & groups)
   15. Contact
   16. Footer
   17. Scroll animations
   18. Reduced motion
   19. Print (clean one-column CV)
   ========================================================================== */


/* ==========================================================================
   1. DESIGN TOKENS: edit colours and spacing here
   ========================================================================== */
:root {
  /* Light palette */
  --bg: #F7F3EC;            /* warm parchment */
  --surface: #FFFCF6;       /* cards */
  --surface-2: #F0E9DD;     /* tags, subtle fills */
  --text: #1F1B16;          /* deep ink */
  --muted: #5B5147;         /* secondary text */
  --accent: #7A1F2B;        /* deep burgundy (fills, borders) */
  --accent-ink: #7A1F2B;    /* burgundy used for text/links */
  --on-accent: #FFFFFF;     /* text on burgundy buttons */
  --gold: #B08D57;          /* muted gold (lines, borders, decoration) */
  --gold-ink: #7C5E2E;      /* darker gold for small text (passes WCAG AA) */
  --gold-soft: rgba(176, 141, 87, 0.12);
  --border: #E4DCCF;
  --header-bg: rgba(247, 243, 236, 0.92);
  --shadow: 0 1px 2px rgba(31, 27, 22, 0.05), 0 8px 24px rgba(31, 27, 22, 0.06);
  --focus: #7A1F2B;
  --grain-opacity: 1;

  /* Typography */
  --font-serif: "Cormorant Garamond", "Times New Roman", Georgia, serif;
  --font-sans: "Source Sans 3", "Segoe UI", system-ui, -apple-system, sans-serif;

  /* Spacing scale */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.5rem;
  --space-6: 2rem;
  --space-7: 3rem;
  --space-8: 4.5rem;

  --radius: 8px;
  --maxw: 1120px;
  --header-h: 64px;
  --gutter: 16px;
}

/* Dark palette: automatic (follows the system) unless the visitor chose "light" */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #16130F;
    --surface: #1E1A15;
    --surface-2: #29231C;
    --text: #EDE6DA;
    --muted: #B8AD9D;
    --accent: #C4515F;
    --accent-ink: #E07F8B;
    --on-accent: #16130F;
    --gold: #CFAE78;
    --gold-ink: #CFAE78;
    --gold-soft: rgba(207, 174, 120, 0.10);
    --border: #3A3229;
    --header-bg: rgba(22, 19, 15, 0.9);
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 8px 24px rgba(0, 0, 0, 0.25);
    --focus: #E07F8B;
    --grain-opacity: 0.5;
    color-scheme: dark;
  }
}

/* Dark palette: manual choice from the toggle button */
:root[data-theme="dark"] {
  --bg: #16130F;
  --surface: #1E1A15;
  --surface-2: #29231C;
  --text: #EDE6DA;
  --muted: #B8AD9D;
  --accent: #C4515F;
  --accent-ink: #E07F8B;
  --on-accent: #16130F;
  --gold: #CFAE78;
  --gold-ink: #CFAE78;
  --gold-soft: rgba(207, 174, 120, 0.10);
  --border: #3A3229;
  --header-bg: rgba(22, 19, 15, 0.9);
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 8px 24px rgba(0, 0, 0, 0.25);
  --focus: #E07F8B;
  --grain-opacity: 0.5;
  color-scheme: dark;
}


/* ==========================================================================
   2. BASE / RESET
   ========================================================================== */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + var(--space-4));
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--text);
  background-color: var(--bg);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Subtle paper grain: pure CSS (an inline SVG noise filter, no image file) */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: var(--grain-opacity);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .45 0 0 0 0 .36 0 0 0 0 .25 0 0 0 .09 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

h1, h2, h3, h4 {
  font-family: var(--font-serif);
  font-weight: 600;
  line-height: 1.15;
  margin: 0;
  color: var(--text);
}

p, ul, ol { margin: 0; }

a {
  color: var(--accent-ink);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
a:hover { text-decoration-thickness: 2px; }

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

strong { font-weight: 700; }

/* Visible focus for keyboard users */
:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
  border-radius: 4px;
}
main:focus { outline: none; }


/* ==========================================================================
   3. UTILITIES
   ========================================================================== */
.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

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

.skip-link {
  position: absolute;
  left: var(--space-4);
  top: -100px;
  z-index: 100;
  padding: var(--space-2) var(--space-4);
  background: var(--accent-ink);
  color: var(--on-accent);
  border-radius: var(--radius);
  font-weight: 600;
  text-decoration: none;
}
.skip-link:focus { top: var(--space-3); }

.icon {
  width: 1.1em;
  height: 1.1em;
  flex-shrink: 0;
  vertical-align: -0.15em;
}
.icon--lg { width: 1.6em; height: 1.6em; }

.nowrap { white-space: nowrap; }
.small { font-size: 0.875rem; }
.muted { color: var(--muted); }

/* TODO placeholders: deliberately eye-catching so they are easy to spot and fill in */
.todo {
  display: inline-block;
  padding: 0 var(--space-2);
  border: 1px dashed var(--accent-ink);
  border-radius: 4px;
  background: var(--gold-soft);
  color: var(--accent-ink);
  font-family: var(--font-sans);
  font-size: 0.85em;
  font-weight: 600;
  line-height: 1.5;
}
.todo--inline { font-size: 0.9em; }


/* ==========================================================================
   4. NAVIGATION
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--header-bg);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}

.nav {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--header-h);
  gap: var(--space-4);
}

/* "MR" monogram */
.nav__brand {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--accent-ink);
  text-decoration: none;
  padding: 0 var(--space-2);
  border: 1px solid var(--gold);
  border-radius: 4px;
  line-height: 1.5;
}

.nav__actions {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.icon-btn {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s;
}
.icon-btn:hover { border-color: var(--gold); color: var(--accent-ink); }
.icon-btn .icon { width: 20px; height: 20px; }

/* EN / PT language switch */
.lang-switch {
  display: inline-grid;
  place-items: center;
  min-width: 44px;
  height: 44px;
  padding: 0 var(--space-2);
  border: 1px solid var(--gold);
  border-radius: var(--radius);
  color: var(--accent-ink);
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.08em;
  text-decoration: none;
  transition: background-color 0.2s;
}
.lang-switch:hover { background: var(--gold-soft); }

/* Theme toggle: show the moon in light mode, the sun in dark mode */
.theme-toggle .icon--sun { display: none; }
:root[data-theme="dark"] .theme-toggle .icon--sun { display: block; }
:root[data-theme="dark"] .theme-toggle .icon--moon { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-toggle .icon--sun { display: block; }
  :root:not([data-theme="light"]) .theme-toggle .icon--moon { display: none; }
}

/* Hamburger icon swap */
.nav__toggle .icon--close { display: none; }
.nav__toggle[aria-expanded="true"] .icon--menu { display: none; }
.nav__toggle[aria-expanded="true"] .icon--close { display: block; }

/* Mobile menu (closed by default, hidden from keyboard until opened) */
.nav__menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  list-style: none;
  padding: var(--space-3) var(--gutter) var(--space-5);
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow);
}
.nav__menu.is-open { display: block; }

.nav__menu a {
  display: block;
  padding: var(--space-3) var(--space-2);
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
  border-bottom: 1px solid var(--border);
}
.nav__menu li:last-child a { border-bottom: 0; }
.nav__menu a:hover,
.nav__menu a.is-active { color: var(--accent-ink); }

/* Desktop navigation */
@media (min-width: 1100px) {
  .nav__toggle { display: none; }
  .nav__brand { order: 1; }
  .nav__menu {
    order: 2;
    display: flex;
    position: static;
    gap: var(--space-1);
    padding: 0;
    margin-left: auto;
    background: none;
    border: 0;
    box-shadow: none;
  }
  .nav__actions { order: 3; }
  .nav__menu a {
    position: relative;
    padding: var(--space-2) var(--space-2);
    border: 0;
    font-size: 0.95rem;
  }
  .nav__menu a::after {
    content: "";
    position: absolute;
    left: var(--space-2);
    right: var(--space-2);
    bottom: 2px;
    height: 1px;
    background: var(--gold);
    transform: scaleX(0);
    transition: transform 0.25s ease;
  }
  .nav__menu a:hover::after,
  .nav__menu a.is-active::after { transform: scaleX(1); }
}


/* ==========================================================================
   5. BUTTONS
   ========================================================================== */
.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  min-height: 46px;
  padding: var(--space-2) var(--space-5);
  border-radius: var(--radius);
  border: 1px solid transparent;
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.2s, border-color 0.2s, color 0.2s, transform 0.2s;
}
.btn:hover { transform: translateY(-1px); text-decoration: none; }

.btn--primary {
  background: var(--accent-ink);
  color: var(--on-accent);
}
.btn--primary:hover { background: var(--accent); }

.btn--ghost {
  background: transparent;
  color: var(--accent-ink);
  border-color: var(--gold);
}
.btn--ghost:hover { background: var(--gold-soft); }


/* ==========================================================================
   6. HERO
   ========================================================================== */
.hero { padding: var(--space-7) 0 var(--space-7); }

.hero__inner {
  display: grid;
  gap: var(--space-6);
  align-items: center;
}

.hero__photo { order: -1; display: flex; justify-content: center; min-width: 0; }

.eyebrow {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-ink);
  margin-bottom: var(--space-2);
}

.hero__name {
  font-size: clamp(2.9rem, 11vw, 5.25rem);
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1;
}

.hero__headline {
  margin-top: var(--space-3);
  font-family: var(--font-serif);
  font-size: clamp(1.25rem, 4.2vw, 1.7rem);
  font-style: italic;
  font-weight: 500;
  color: var(--accent-ink);
}
.hero__headline .sep { color: var(--gold); font-style: normal; margin: 0 0.2em; }

/* Thin gold divider under the headline */
.hero__rule {
  display: block;
  width: 120px;
  height: 1px;
  margin: var(--space-5) 0;
  background: linear-gradient(90deg, var(--gold), transparent);
}

.hero__meta {
  list-style: none;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2) var(--space-5);
  margin-bottom: var(--space-6);
  color: var(--muted);
}
.hero__meta li {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  min-width: 0;
  overflow-wrap: anywhere;
}
.hero__meta .icon { color: var(--gold-ink); }

/* Circular avatar with "MR" fallback behind the photo */
.avatar {
  position: relative;
  width: min(clamp(170px, 48vw, 300px), 100%);
  aspect-ratio: 1;
  border-radius: 50%;
  padding: 6px;
  background: var(--surface);
  border: 1px solid var(--gold);
  box-shadow: var(--shadow), 0 0 0 10px var(--gold-soft);
}
.avatar__initials,
.avatar__img {
  position: absolute;
  inset: 6px;
  width: calc(100% - 12px);
  height: calc(100% - 12px);
  border-radius: 50%;
}
.avatar__initials {
  display: grid;
  place-items: center;
  background: radial-gradient(circle at 30% 25%, var(--accent), #4E121A);
  color: #F7F3EC;
  font-family: var(--font-serif);
  font-size: clamp(3rem, 14vw, 5.5rem);
  font-weight: 600;
  letter-spacing: 0.05em;
}
.avatar__img { object-fit: cover; }

@media (min-width: 768px) {
  .hero { padding: var(--space-8) 0; }
  .hero__inner { grid-template-columns: 1.4fr 1fr; gap: var(--space-7); }
  .hero__photo { order: 0; }
}


/* ==========================================================================
   7. SECTIONS & SECTION HEADINGS
   ========================================================================== */
.section {
  position: relative;
  padding: var(--space-7) 0;
}

/* Thin gold divider with a small diamond ornament between sections */
.section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  width: min(var(--maxw), calc(100% - 2 * var(--gutter)));
  height: 1px;
  transform: translateX(-50%);
  background: linear-gradient(90deg, transparent, var(--gold) 15%, var(--gold) 85%, transparent);
  opacity: 0.7;
}
.section::after {
  content: "";
  position: absolute;
  top: -4px;
  left: 50%;
  width: 8px;
  height: 8px;
  transform: translateX(-50%) rotate(45deg);
  background: var(--bg);
  border: 1px solid var(--gold);
}

.section-head {
  position: relative;
  display: flex;
  align-items: baseline;
  gap: var(--space-3);
  margin-bottom: var(--space-6);
}
.section-head h2 {
  font-size: clamp(2rem, 6vw, 2.75rem);
}
.section-head__num {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  font-style: italic;
  color: var(--gold-ink);
  min-width: 2.2em;
  padding-right: var(--space-2);
  border-right: 1px solid var(--gold);
}

.lead {
  font-size: 1.125rem;
  max-width: 68ch;
}

.section-intro {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin: calc(-1 * var(--space-4)) 0 var(--space-5);
  font-size: 1.1rem;
}
.section-intro .icon { color: var(--gold-ink); }

@media (min-width: 768px) {
  .section { padding: var(--space-8) 0; }
}


/* ==========================================================================
   8. CARDS, ENTRIES, BADGES, TAGS
   ========================================================================== */
.grid {
  display: grid;
  gap: var(--space-5);
}
@media (min-width: 768px) {
  .grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid__full { grid-column: 1 / -1; }
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: var(--space-5);
  min-width: 0;
}
@media (min-width: 768px) {
  .card { padding: var(--space-6); }
}

.card__title {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: 1.6rem;
  margin-bottom: var(--space-5);
}
.card__title .icon { color: var(--gold-ink); }

/* An experience entry: role, organisation, location, date badge, bullets, skill tags */
.entry {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.entry__head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--space-2) var(--space-4);
}
.entry__head > div { min-width: 0; flex: 1 1 16rem; }

.entry__role {
  font-size: 1.45rem;
  font-weight: 700;
}
.entry__note {
  font-weight: 500;
  font-style: italic;
  color: var(--muted);
  font-size: 0.85em;
}
.entry__org {
  margin-top: var(--space-1);
  font-weight: 600;
  color: var(--accent-ink);
}
.entry__meta {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: 0.925rem;
  color: var(--muted);
  margin-top: calc(-1 * var(--space-2));
}
.entry__meta .icon { color: var(--gold-ink); }

.entry__list {
  padding-left: 1.2rem;
  display: grid;
  gap: var(--space-2);
}
.entry__list li::marker { color: var(--gold); }

.entry__text { color: var(--text); }

/* Date badge */
.badge {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-1);
  padding: 0.15rem var(--space-3);
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface-2);
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  white-space: normal;
}
.badge--gold {
  border-color: var(--gold);
  background: var(--gold-soft);
  color: var(--gold-ink);
}
.badge-stack {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}

/* Skill tags (pills) */
.tags {
  list-style: none;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-top: var(--space-1);
}
.tag {
  padding: 0.1rem var(--space-3);
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.7;
}
.tag.todo { border-style: dashed; border-color: var(--accent-ink); color: var(--accent-ink); }

.shared-skills {
  margin-top: var(--space-5);
  padding: var(--space-4) var(--space-5);
  border-left: 2px solid var(--gold);
  background: var(--gold-soft);
  border-radius: 0 var(--radius) var(--radius) 0;
}
.shared-skills__label {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold-ink);
  margin-bottom: var(--space-2);
}


/* ==========================================================================
   9. ABOUT: highlight stats
   ========================================================================== */
.stats {
  list-style: none;
  padding: 0;
  margin-top: var(--space-6);
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-4);
}
@media (min-width: 768px) {
  .stats { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

.stat {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
  padding: var(--space-4);
  border-top: 2px solid var(--accent);
  background: var(--surface);
  border-radius: 0 0 var(--radius) var(--radius);
  box-shadow: var(--shadow);
}
.stat__value {
  font-family: var(--font-serif);
  font-size: 2.6rem;
  font-weight: 700;
  line-height: 1;
  color: var(--accent-ink);
  min-height: 2.6rem;
  display: flex;
  align-items: center;
}
.stat__label { font-size: 0.925rem; color: var(--muted); }
.stat--gold { border-top-color: var(--gold); }
.stat--gold .stat__value { color: var(--gold-ink); }


/* ==========================================================================
   10. EDUCATION: grade & scholarship
   ========================================================================== */
.grade {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-1);
  margin-top: var(--space-2);
  padding: var(--space-4) var(--space-5);
  border: 1px solid var(--gold);
  border-radius: var(--radius);
  background: var(--gold-soft);
  align-self: flex-start;
}
.grade__label {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold-ink);
}
.grade__value {
  font-family: var(--font-serif);
  font-size: 3rem;
  font-weight: 700;
  line-height: 1;
  color: var(--accent-ink);
}
.grade__scale { font-size: 1.5rem; color: var(--muted); font-weight: 500; }

.card--gold {
  border-color: var(--gold);
  background:
    linear-gradient(135deg, var(--gold-soft), transparent 60%),
    var(--surface);
  box-shadow: var(--shadow), inset 4px 0 0 var(--gold);
}
.entry__title-row {
  display: flex;
  gap: var(--space-3);
  align-items: flex-start;
}
.award-icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  border-radius: 50%;
  border: 1px solid var(--gold);
  color: var(--gold-ink);
  background: var(--surface);
}


/* ==========================================================================
   11. TIMELINE (work experience)
   ========================================================================== */
.timeline {
  list-style: none;
  position: relative;
  padding: 0 0 0 var(--space-6);
  display: grid;
  gap: var(--space-5);
}
.timeline::before {
  content: "";
  position: absolute;
  top: 8px;
  bottom: 8px;
  left: 7px;
  width: 1px;
  background: linear-gradient(var(--gold), var(--gold) 90%, transparent);
}
.timeline > li { position: relative; }
.timeline > li::before {
  content: "";
  position: absolute;
  top: 1.9rem;
  left: calc(-1 * var(--space-6) + 1px);
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: var(--bg);
  border: 2px solid var(--accent);
}
.timeline > li:first-child::before { background: var(--accent); }


/* ==========================================================================
   12. VOLUNTEERING / INTERNATIONAL extras
   ========================================================================== */
.events {
  list-style: none;
  padding: 0;
  display: grid;
  gap: var(--space-2);
}
.events li {
  display: flex;
  gap: var(--space-2);
  align-items: flex-start;
  padding: var(--space-3);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg);
}
.events .icon { color: var(--gold-ink); margin-top: 0.25em; }

/* Volunteer → Coordinator progression */
.entry__role--progress {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-1) var(--space-2);
}
.progress-arrow {
  color: var(--gold-ink);
  width: 1em;
  height: 1em;
}


/* Programme / partner logos */
.logos {
  list-style: none;
  padding: 0;
  margin-top: var(--space-5);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-4);
}
.logos__item {
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: 100%;
  padding: var(--space-3) var(--space-4);
  background: #FFFFFF;           /* always white so the logos' own colours stay correct */
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.logos__item img {
  height: 72px;                  /* logo height: change here to make logos bigger/smaller */
  width: auto;
  max-width: 100%;
  object-fit: contain;
}
@media (min-width: 768px) {
  .logos__item img { height: 88px; }
}


/* ==========================================================================
   13. MUSIC section: staff lines & voice badges
   ========================================================================== */
/* Five thin staff lines behind the section title */
.section-head--staff {
  padding: var(--space-3) 0;
}
.section-head--staff::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: repeating-linear-gradient(
    to bottom,
    transparent 0,
    transparent calc(20% - 1px),
    var(--gold) calc(20% - 1px),
    var(--gold) 20%
  );
  opacity: 0.35;
  -webkit-mask-image: linear-gradient(90deg, #000 40%, transparent);
  mask-image: linear-gradient(90deg, #000 40%, transparent);
}
.section--music .section-head { isolation: isolate; }

.music-card {
  position: relative;
  overflow: hidden;
}
/* Faint staff strip along the top of each music card */
.music-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 18px;
  background: repeating-linear-gradient(to bottom, var(--gold) 0 1px, transparent 1px 4px);
  opacity: 0.25;
  pointer-events: none;
}
.music-card .entry__head { align-items: center; margin-top: var(--space-2); }

.voice-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: 0.2rem var(--space-3);
  border-radius: 999px;
  background: var(--accent-ink);
  color: var(--on-accent);
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.03em;
}


/* ==========================================================================
   14. SKILLS: languages & groups
   ========================================================================== */
.skills-layout {
  display: grid;
  gap: var(--space-5);
}
@media (min-width: 1024px) {
  .skills-layout { grid-template-columns: 1fr 1.3fr; align-items: start; }
}

.langs {
  list-style: none;
  padding: 0;
  display: grid;
  gap: var(--space-4);
  margin-bottom: var(--space-4);
}
.lang {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: var(--space-1) var(--space-3);
}
.lang__name { font-weight: 600; }
.lang__level {
  font-weight: 700;
  color: var(--accent-ink);
  font-variant-numeric: tabular-nums;
}
/* Decorative bar: 6 CEFR steps (A1 → Native) */
.lang__bar {
  grid-column: 1 / -1;
  position: relative;
  height: 8px;
  border-radius: 999px;
  background: var(--surface-2);
  overflow: hidden;
}
.lang__bar::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: var(--level, 0%);
  background: linear-gradient(90deg, var(--gold), var(--accent));
  border-radius: 999px;
}
/* Segment separators so the six levels are readable */
.lang__bar::after {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(90deg, transparent 0 calc(16.666% - 2px), var(--surface) calc(16.666% - 2px) 16.666%);
}

.skill-group + .skill-group { margin-top: var(--space-5); }
.skill-group h4 {
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold-ink);
  margin-bottom: var(--space-2);
}


/* ==========================================================================
   15. CONTACT
   ========================================================================== */
.contact {
  display: grid;
  gap: var(--space-5);
  border-top: 3px solid var(--accent);
}
.contact__list {
  list-style: none;
  padding: 0;
  display: grid;
  gap: var(--space-2);
  font-size: 1.05rem;
}
.contact__list li {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  overflow-wrap: anywhere;
}
.contact__list .icon { color: var(--gold-ink); }

.copy-status {
  min-height: 1.5em;
  margin-top: calc(-1 * var(--space-3));
  font-weight: 600;
  color: var(--gold-ink);
}


/* ==========================================================================
   16. FOOTER
   ========================================================================== */
.site-footer {
  border-top: 1px solid var(--gold);
  padding: var(--space-5) 0;
  color: var(--muted);
  font-size: 0.925rem;
}
.site-footer__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
}
.back-to-top {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-weight: 600;
}


/* ==========================================================================
   17. SCROLL ANIMATIONS (only when JavaScript is running)
   ========================================================================== */
.js .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.js .reveal.is-visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}


/* ==========================================================================
   18. REDUCED MOTION: switch off animations
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition: none !important;
    animation: none !important;
  }
  .js .reveal { opacity: 1; transform: none; }
  .btn:hover { transform: none; }
}


/* ==========================================================================
   19. PRINT: a clean, one-column CV
   ========================================================================== */
@media print {
  :root {
    --bg: #fff; --surface: #fff; --surface-2: #fff;
    --text: #000; --muted: #222; --accent: #000; --accent-ink: #000;
    --gold: #999; --gold-ink: #000; --gold-soft: transparent; --border: #bbb;
    --shadow: none;
  }
  @page { margin: 14mm; }

  body { background: #fff; color: #000; font-size: 10.5pt; line-height: 1.45; }
  body::before { display: none; }

  .site-header, .skip-link, .theme-toggle, .nav__toggle, .btn-row,
  .copy-status, .back-to-top, .hero__rule, .hero__photo, .eyebrow,
  .section::after, .section-head__num, .music-card::before,
  .section-head--staff::before, .lang__bar { display: none !important; }

  .js .reveal { opacity: 1 !important; transform: none !important; }

  .container { max-width: none; padding: 0; }
  .hero, .section { padding: 0 0 10pt; }
  .section::before { display: none; }
  .section-head { margin: 8pt 0 6pt; border-bottom: 1px solid #000; padding-bottom: 2pt; }
  .section-head h2 { font-size: 16pt; }
  .hero__inner { display: block; }
  .hero__name { font-size: 26pt; }
  .hero__headline { font-size: 13pt; color: #000; }
  .hero__meta { margin: 6pt 0 0; color: #000; }

  .grid, .grid--2, .skills-layout, .stats { display: block; }
  .stats { display: flex; flex-wrap: wrap; gap: 6pt; margin-top: 6pt; }
  .stat { border: 1px solid #bbb; padding: 4pt 8pt; flex-direction: row; align-items: baseline; gap: 4pt; }
  .stat__value { font-size: 13pt; min-height: 0; }
  .stat__value .icon { width: 12pt; height: 12pt; }

  .card, .card--gold, .contact {
    border: 0;
    border-bottom: 1px solid #ddd;
    border-radius: 0;
    box-shadow: none;
    background: none;
    padding: 6pt 0;
    margin: 0;
    break-inside: avoid;
    page-break-inside: avoid;
  }
  .timeline { padding: 0; }
  .timeline::before, .timeline > li::before { display: none; }
  .entry { gap: 3pt; }
  .entry__role { font-size: 12.5pt; }
  .badge, .voice-badge, .tag {
    background: none; border: 0; padding: 0; color: #000; font-size: 9.5pt;
  }
  .voice-badge { font-weight: 700; }
  .badge { font-style: italic; }
  .tags { gap: 0; }
  .tag:not(:last-child)::after { content: " · "; }
  .events li { border: 0; padding: 0; background: none; }
  .shared-skills { border: 0; padding: 0; background: none; margin-top: 4pt; }
  .grade { border: 0; padding: 0; background: none; flex-direction: row; align-items: baseline; gap: 6pt; }
  .grade__value { font-size: 14pt; }
  .grade__scale { font-size: 10pt; }
  .award-icon { display: none; }
  .logos { margin-top: 6pt; gap: 12pt; }
  .logos__item { padding: 0; border: 0; box-shadow: none; }
  .logos__item img { height: 40pt; }
  .langs { grid-template-columns: repeat(3, 1fr); gap: 2pt 12pt; }
  .todo { border-color: #000; color: #000; }
  a { color: #000; text-decoration: none; }
  .site-footer { border: 0; padding: 6pt 0 0; font-size: 9pt; }
}
