/* Brian Sewell — brianpsewell.com
   Dark, warm, music-forward resume site. No build step. */

:root {
  --bg: #0b0a09;
  --bg-alt: #12100e;
  --bg-elevated: #181512;
  --bg-card: #1c1916;
  --cream: #f4efe6;
  --cream-soft: #d8cfc2;
  --muted: #9a9083;
  --gold: #d4a056;
  --gold-bright: #e8c07a;
  --gold-deep: #b07d32;
  --gold-dim: rgba(212, 160, 86, 0.14);
  --line: rgba(244, 239, 230, 0.1);
  --line-strong: rgba(212, 160, 86, 0.35);
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
  --header-h: 4.25rem;
  --font-display: "Fraunces", "Times New Roman", serif;
  --font-sans: "Outfit", "Segoe UI", system-ui, sans-serif;
  --measure: 68ch;
  --radius: 14px;
  --ease: 220ms ease;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 0.75rem);
}

html:focus-within {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--cream);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 80;
  opacity: 0.05;
  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='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)' opacity='.9'/%3E%3C/svg%3E");
}

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

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 560;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--cream);
  margin: 0 0 0.6em;
}

h2 {
  font-size: clamp(2rem, 4vw, 3.15rem);
  font-weight: 560;
}

h3 {
  font-size: 1.35rem;
  margin-bottom: 0.4em;
}

h4 {
  font-size: 1.1rem;
  margin-bottom: 0.25em;
}

p {
  margin: 0 0 1em;
}

p:last-child {
  margin-bottom: 0;
}

a {
  color: var(--gold-bright);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
  text-decoration-color: rgba(232, 192, 122, 0.45);
  transition: color var(--ease), text-decoration-color var(--ease);
}

a:hover {
  color: var(--cream);
  text-decoration-color: var(--gold);
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--gold-bright);
  outline-offset: 3px;
}

cite {
  font-style: italic;
  padding-right: 0.15em;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 200;
  background: var(--gold);
  color: #1a140c;
  padding: 0.6rem 1rem;
  font-weight: 600;
  text-decoration: none;
}

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

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

.section {
  position: relative;
  padding: clamp(4rem, 8vw, 6.5rem) 0;
}

.section-alt {
  background: var(--bg-alt);
  box-shadow: inset 0 1px 0 var(--line), inset 0 -1px 0 var(--line);
}

.section-intro {
  margin-bottom: 1.5rem;
}

.section-intro-wide {
  max-width: 44rem;
  margin-bottom: 2.75rem;
}

.kicker {
  margin: 0 0 0.75rem;
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
}

.lede,
.block-note {
  color: var(--muted);
  font-size: 1.05rem;
}

/* Header
   ---------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  background: rgba(11, 10, 9, 0.82);
  border-bottom: 1px solid transparent;
  transition: background var(--ease), border-color var(--ease);
}

.site-header::before {
  content: "";
  position: absolute;
  inset: 0;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  z-index: 0;
  pointer-events: none;
}

.site-header.is-scrolled {
  background: rgba(11, 10, 9, 0.92);
  border-bottom-color: var(--line);
}

.header-inner {
  position: relative;
  z-index: 2;
  width: min(1120px, calc(100% - 2.5rem));
  margin-inline: auto;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.wordmark {
  position: relative;
  z-index: 121;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.2rem;
  color: var(--cream);
  text-decoration: none;
  letter-spacing: -0.01em;
  flex-shrink: 0;
}

.wordmark:hover {
  color: var(--gold-bright);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 0.15rem 1.15rem;
}

.site-nav a {
  color: var(--cream-soft);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 400;
  letter-spacing: 0.02em;
  padding: 0.35rem 0;
}

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

.nav-cta {
  padding: 0.4rem 0.85rem !important;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  color: var(--gold-bright) !important;
}

.nav-cta:hover {
  background: var(--gold-dim);
  color: var(--cream) !important;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  position: relative;
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 1.5px;
  background: var(--cream);
  margin: 5px auto;
  transition: transform var(--ease), opacity var(--ease);
}

/* Buttons
   ---------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.85rem;
  padding: 0.7rem 1.25rem;
  border-radius: 999px;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 500;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background var(--ease), color var(--ease), border-color var(--ease), transform var(--ease);
}

.btn-primary {
  background: var(--gold);
  color: #1a140c;
  text-decoration: none;
}

.btn-primary:hover {
  background: var(--gold-bright);
  color: #1a140c;
}

.btn-ghost {
  background: transparent;
  color: var(--cream);
  border-color: var(--line-strong);
  text-decoration: none;
}

.btn-ghost:hover {
  background: var(--gold-dim);
  color: var(--cream);
}

/* Hero
   ---------------------------------------------------------------- */
.hero {
  position: relative;
  overflow: hidden;
  padding: clamp(2.5rem, 6vw, 5rem) 0 clamp(4rem, 8vw, 6.5rem);
  min-height: calc(100vh - var(--header-h));
  display: flex;
  align-items: center;
}

.hero-glow {
  position: absolute;
  inset: auto -10% 20% 35%;
  height: 70%;
  background:
    radial-gradient(ellipse at 70% 20%, rgba(212, 160, 86, 0.22), transparent 55%),
    radial-gradient(ellipse at 20% 80%, rgba(120, 60, 20, 0.18), transparent 50%);
  pointer-events: none;
}

.hero-staff {
  position: absolute;
  inset: 18% 0 auto;
  height: 140px;
  pointer-events: none;
  opacity: 0.08;
  background-image: repeating-linear-gradient(
    to bottom,
    var(--gold) 0,
    var(--gold) 1px,
    transparent 1px,
    transparent 28px
  );
}

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(240px, 0.7fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}

.eyebrow {
  margin: 0 0 1rem;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
}

.hero h1 {
  margin: 0 0 1rem;
  font-family: "Playfair Display", "Times New Roman", serif;
  font-size: clamp(4rem, 11vw, 7.25rem);
  font-style: normal;
  font-weight: 600;
  line-height: 0.9;
  letter-spacing: -0.03em;
}

.hero h1 span {
  display: block;
  font-family: "Playfair Display", "Times New Roman", serif;
  font-style: italic;
  font-weight: 700;
  color: var(--gold-bright);
}

.aliases {
  margin: 0 0 1.15rem;
  color: var(--cream-soft);
  font-size: 1.1rem;
  max-width: 36rem;
}

.aliases em {
  font-family: var(--font-display);
  font-style: italic;
  color: var(--cream);
}

.tagline {
  margin: 0 0 1.85rem;
  max-width: 38rem;
  color: var(--muted);
  font-size: 1.08rem;
}

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

.hero-portrait {
  margin: 0;
  position: relative;
  justify-self: end;
  width: min(100%, 400px);
}

.hero-portrait::before {
  content: "";
  position: absolute;
  inset: 1rem -1rem -1rem 1rem;
  border: 1px solid var(--line-strong);
  border-radius: 2px 18px 2px 18px;
  pointer-events: none;
}

.hero-portrait img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 2px 18px 2px 18px;
  background: #161310;
  box-shadow: var(--shadow);
  position: relative;
  z-index: 1;
}

.hero-portrait figcaption {
  position: absolute;
  left: 1rem;
  bottom: 1rem;
  z-index: 2;
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--cream-soft);
  background: rgba(11, 10, 9, 0.72);
  padding: 0.35rem 0.6rem;
  border-radius: 999px;
  backdrop-filter: blur(8px);
}

/* About
   ---------------------------------------------------------------- */
.about-layout,
.live-layout,
.contact-layout {
  display: grid;
  grid-template-columns: minmax(200px, 0.7fr) minmax(0, 1.2fr);
  gap: clamp(1.5rem, 4vw, 4rem);
  align-items: start;
}

.about-prose,
.live-body,
.contact-body {
  max-width: var(--measure);
  color: var(--cream-soft);
}

.about-prose p + p,
.live-body p + p,
.live-body p + ul,
.live-body ul + p {
  margin-top: 1.15em;
}

/* Highlights
   ---------------------------------------------------------------- */
.stats {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.stats li {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem 1.35rem 1.4rem;
  min-height: 100%;
}

.stat-value {
  font-family: var(--font-display);
  font-size: clamp(2.1rem, 3.4vw, 2.85rem);
  font-weight: 560;
  line-height: 1;
  color: var(--gold-bright);
  margin: 0 0 0.65rem;
  letter-spacing: -0.03em;
}

.stat-label {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.45;
}

/* Timeline
   ---------------------------------------------------------------- */
.timeline {
  list-style: none;
  margin: 0;
  padding: 0;
  position: relative;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 9rem;
  top: 0.35rem;
  bottom: 0.35rem;
  width: 1px;
  background: linear-gradient(to bottom, var(--gold), var(--line) 20%, var(--line) 80%, transparent);
}

.timeline li {
  position: relative;
  display: grid;
  grid-template-columns: 9rem 1fr;
  column-gap: 3rem;
  padding: 0 0 2.4rem 0;
}

.timeline .when {
  grid-column: 1;
  grid-row: 1 / span 2;
}

.timeline h3,
.timeline li > p:not(.when) {
  grid-column: 2;
}

.timeline li:last-child {
  padding-bottom: 0;
}

.timeline li::after {
  content: "";
  position: absolute;
  left: 9rem;
  top: 0.55rem;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 4px var(--bg);
  transform: translateX(-4px);
}

.timeline .when {
  margin: 0;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gold);
  padding-top: 0.2rem;
  white-space: nowrap;
}

.timeline h3 {
  margin: 0 0 0.4rem;
  font-size: 1.45rem;
}

.timeline p:not(.when) {
  color: var(--cream-soft);
  max-width: 62ch;
}

/* Credits
   ---------------------------------------------------------------- */
.credit-block {
  margin-bottom: 3rem;
}

.credit-block h3 {
  font-size: 1.6rem;
  margin-bottom: 0.35rem;
}

.block-note {
  margin-bottom: 1.4rem;
}

.album-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.9rem;
}

.album-card {
  background: var(--bg-card);
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius);
  padding: 1.15rem 1.1rem 1.2rem;
  min-height: 100%;
}

.album-index {
  margin: 0 0 1.1rem;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  color: var(--gold);
}

.album-card h4 {
  font-style: italic;
  font-weight: 400;
  color: var(--cream-soft);
}

.album-card p {
  color: var(--muted);
  font-size: 0.88rem;
}

.album-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 0.65rem;
  margin-top: 1rem;
}

.album-links a[aria-disabled="true"] {
  color: var(--muted);
  text-decoration: none;
  pointer-events: none;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border-bottom: 1px dashed rgba(154, 144, 131, 0.5);
  padding-bottom: 0.05rem;
}

.credit-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 1rem;
}

.credit-card {
  grid-column: span 2;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.45rem 1.35rem 1.4rem;
}

.credit-card .kicker {
  margin-bottom: 0.85rem;
}

.credit-card p {
  color: var(--cream-soft);
  font-size: 0.98rem;
}

/* Center the leftover pair in a 5-card, 3-up grid */
.credit-card:nth-child(4) { grid-column: 2 / span 2; }
.credit-card:nth-child(5) { grid-column: 4 / span 2; }

/* Live
   ---------------------------------------------------------------- */
.festival-list {
  list-style: none;
  margin: 0 0 1.25rem;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.festival-list li {
  border: 1px solid var(--line-strong);
  color: var(--cream);
  border-radius: 999px;
  padding: 0.4rem 0.9rem;
  font-size: 0.92rem;
}

/* Events
   ---------------------------------------------------------------- */
.services {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 1rem;
}

.services li {
  grid-column: span 2;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem 1.3rem;
  border-top: 2px solid var(--gold);
}

/* Center the leftover pair in a 5-card, 3-up grid */
.services li:nth-child(4) { grid-column: 2 / span 2; }
.services li:nth-child(5) { grid-column: 4 / span 2; }

.services h3 {
  font-size: 1.3rem;
}

.services p {
  color: var(--cream-soft);
  font-size: 0.98rem;
}

.services-note {
  margin-top: 1.5rem;
  color: var(--muted);
  font-size: 0.92rem;
}

/* Contact
   ---------------------------------------------------------------- */
.placeholder-flag {
  color: var(--muted);
  font-size: 0.85em;
}

.contact-form {
  margin-top: 1.75rem;
  display: grid;
  gap: 1rem;
  max-width: 32rem;
}

.form-row {
  margin: 0;
  display: grid;
  gap: 0.4rem;
}

.form-row label {
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.form-row input,
.form-row textarea {
  width: 100%;
  font: inherit;
  color: var(--cream);
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0.75rem 0.9rem;
  caret-color: var(--gold);
}

.form-row input:hover,
.form-row textarea:hover {
  border-color: rgba(212, 160, 86, 0.45);
}

.form-row textarea {
  resize: vertical;
  min-height: 8rem;
}

.form-actions {
  margin: 0.25rem 0 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.9rem 1.1rem;
}

.form-actions .btn {
  border: 0;
}

.form-hint {
  color: var(--muted);
  font-size: 0.85rem;
}

/* Footer
   ---------------------------------------------------------------- */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 1.75rem 0 2rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.site-footer a {
  color: var(--cream-soft);
  text-decoration: none;
}

.site-footer a:hover {
  color: var(--gold-bright);
}

/* Responsive
   ---------------------------------------------------------------- */
@media (max-width: 980px) {
  .hero-grid,
  .about-layout,
  .live-layout,
  .contact-layout {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: 0;
    align-items: start;
  }

  .hero-portrait {
    justify-self: start;
    width: min(100%, 280px);
    margin-top: 0.25rem;
  }

  .stats,
  .credit-grid,
  .services {
    grid-template-columns: repeat(2, 1fr);
  }

  .services li {
    grid-column: auto;
  }

  .services li:last-child {
    grid-column: 1 / -1;
    width: 100%;
    max-width: calc(50% - 0.5rem);
    justify-self: center;
  }

  .credit-card {
    grid-column: auto;
  }

  .credit-card:last-child {
    grid-column: 1 / -1;
    width: 100%;
    max-width: calc(50% - 0.5rem);
    justify-self: center;
  }

  .album-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .timeline::before {
    left: 0.35rem;
  }

  .timeline li {
    grid-template-columns: 1fr;
    padding-left: 1.6rem;
    padding-bottom: 2rem;
  }

  .timeline li::after {
    left: 0.35rem;
  }

  .timeline .when {
    margin-bottom: 0.35rem;
  }
}

@media (max-width: 760px) {
  .nav-toggle {
    display: block;
    position: relative;
    z-index: 120;
  }

  body.nav-open {
    overflow: hidden;
  }

  body.nav-open .site-header {
    height: 100vh;
    height: 100dvh;
    background: #0b0a09;
    border-bottom-color: transparent;
  }

  body.nav-open .header-inner {
    width: 100%;
    height: 100%;
    align-items: flex-start;
    padding-inline: 0.75rem;
  }

  body.nav-open .wordmark {
    height: var(--header-h);
    display: inline-flex;
    align-items: center;
  }

  body.nav-open .nav-toggle {
    margin-top: calc((var(--header-h) - 44px) / 2);
  }

  .site-nav {
    display: none;
    position: absolute;
    inset: 0;
    z-index: 110;
    background: #0b0a09;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 1.15rem;
    padding: 5.5rem 1.5rem 2rem;
    overflow-y: auto;
  }

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

  .site-nav a {
    font-family: var(--font-display);
    font-size: 1.85rem;
    color: var(--cream);
  }

  .nav-cta {
    border: 0 !important;
    padding: 0.35rem 0 !important;
    border-radius: 0;
    color: var(--gold-bright) !important;
  }

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

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

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

@media (max-width: 560px) {
  .container,
  .header-inner {
    width: min(1120px, calc(100% - 1.5rem));
  }

  .hero h1 {
    font-size: clamp(3.4rem, 18vw, 4.6rem);
  }

  .stats,
  .credit-grid,
  .services,
  .album-grid {
    grid-template-columns: 1fr;
  }

  .credit-card,
  .credit-card:last-child,
  .services li,
  .services li:last-child {
    grid-column: auto;
    max-width: none;
  }

  .hero-actions,
  .form-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .footer-inner {
    flex-direction: column;
  }
}

/* Reduced motion
   ---------------------------------------------------------------- */
@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;
  }
}

/* Print
   ---------------------------------------------------------------- */
@media print {
  body {
    background: #fff;
    color: #111;
  }

  body::before,
  .site-header,
  .hero-glow,
  .hero-staff,
  .hero-actions,
  .nav-toggle,
  .contact-form,
  .skip-link {
    display: none !important;
  }

  a {
    color: inherit;
  }

  .section,
  .hero {
    padding: 1.25rem 0;
    min-height: 0;
    break-inside: avoid;
  }

  .hero-grid,
  .about-layout,
  .live-layout,
  .contact-layout {
    grid-template-columns: 1fr;
  }
}


/* === added: certs, jobs, music feature, skills, contact === */

.cert-badges {
  list-style: none;
  margin: 1.5rem 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.cert-badges li {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.05rem;
  padding: 0.45rem 0.75rem;
  border: 1px solid var(--line-strong);
  background: var(--gold-dim);
  color: var(--gold-bright);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: 999px;
  line-height: 1.25;
}

.cert-badges li span {
  font-size: 0.62rem;
  letter-spacing: 0.06em;
  color: var(--cream-soft);
  text-transform: uppercase;
  font-weight: 400;
}

.cert-badges-lg li {
  font-size: 0.78rem;
  padding: 0.6rem 0.95rem;
}

.cert-panel {
  margin-bottom: 2.5rem;
  padding: 1.5rem 1.6rem 1.7rem;
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.cert-panel h3 {
  margin: 0 0 0.9rem;
  font-size: 1.15rem;
}

.jobs {
  list-style: none;
  margin: 2rem 0 0;
  padding: 0;
  display: grid;
  gap: 0;
}

.jobs li {
  position: relative;
  padding: 1.5rem 0 1.6rem 0;
  border-top: 1px solid var(--line);
}

.jobs li:last-child {
  border-bottom: 1px solid var(--line);
}

.jobs .when {
  margin: 0 0 0.35rem;
  color: var(--gold);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 500;
}

.jobs h3 {
  margin: 0 0 0.2rem;
  font-size: 1.35rem;
}

.jobs .org {
  margin: 0 0 0.65rem;
  color: var(--cream-soft);
  font-weight: 500;
}

.jobs p {
  margin: 0;
  color: var(--cream-soft);
  max-width: var(--measure);
}

.jobs a {
  color: var(--gold-bright);
  text-decoration: none;
}

.jobs a:hover {
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.feature-photo {
  margin: 0 0 1.75rem;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-elevated);
  border: 1px solid var(--line);
}

.feature-photo img {
  width: 100%;
  height: auto;
  object-fit: cover;
}

.feature-photo-wide {
  margin-top: 0.5rem;
  margin-bottom: 0.5rem;
}

.feature-photo-wide img {
  max-height: 420px;
  object-fit: cover;
  object-position: center;
}

.music-feature {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: 2rem;
  align-items: center;
  margin-bottom: 2.5rem;
}

.music-feature .feature-photo {
  margin: 0;
}

.music-copy p + p {
  margin-top: 0.9rem;
}

.music-cta {
  margin-top: 1.25rem;
}

.events-block {
  margin-top: 2.75rem;
}

.events-block > h3 {
  font-size: 1.8rem;
  margin-bottom: 0.5rem;
}

.events-block > p {
  color: var(--cream-soft);
  max-width: var(--measure);
  margin-bottom: 1.5rem;
}

.skill-groups {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}

.skill-groups article {
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.35rem 1.4rem 1.2rem;
}

.skill-groups h3 {
  margin: 0 0 0.7rem;
  font-size: 1.2rem;
}

.skill-groups ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.skill-groups li {
  position: relative;
  padding: 0.35rem 0 0.35rem 1rem;
  color: var(--cream-soft);
  font-size: 0.98rem;
}

.skill-groups li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.85em;
  width: 0.4rem;
  height: 0.4rem;
  border-radius: 50%;
  background: var(--gold);
}

.education {
  margin-top: 2.5rem;
}

.education > h3 {
  font-size: 1.5rem;
  margin-bottom: 0.75rem;
}

.edu-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.edu-list li {
  padding: 1rem 0;
  border-top: 1px solid var(--line);
}

.edu-list li:last-child {
  border-bottom: 1px solid var(--line);
}

.edu-list .when {
  margin: 0 0 0.2rem;
  color: var(--gold);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 500;
}

.edu-list h4 {
  margin: 0 0 0.2rem;
  font-size: 1.2rem;
}

.edu-list p {
  margin: 0;
  color: var(--cream-soft);
}

.edu-cert {
  display: inline-block;
  margin-left: 0.55rem;
  padding: 0.15rem 0.55rem;
  border: 1px solid var(--line-strong);
  background: var(--gold-dim);
  color: var(--gold-bright);
  font-family: var(--font-sans);
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: 999px;
  vertical-align: middle;
}

.contact-section {
  position: relative;
  overflow: hidden;
}

.contact-skyline {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(11, 10, 9, 0.82) 0%, rgba(11, 10, 9, 0.88) 100%),
    url("assets/brian-skyline.jpg") center/cover no-repeat;
  opacity: 0.55;
  pointer-events: none;
}

.contact-section .container {
  position: relative;
  z-index: 1;
}

.contact-details {
  list-style: none;
  margin: 1.5rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.85rem;
}

.contact-details li {
  display: grid;
  grid-template-columns: 7.5rem 1fr;
  gap: 0.75rem;
  align-items: baseline;
  color: var(--cream-soft);
}

.contact-details span {
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.contact-details a {
  color: var(--gold-bright);
  text-decoration: none;
}

.contact-details a:hover {
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1.15rem;
}

.lede a {
  color: var(--gold-bright);
}

@media (max-width: 980px) {
  .music-feature,
  .skill-groups {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .contact-details li {
    grid-template-columns: 1fr;
    gap: 0.15rem;
  }

  .hero-copy .cert-badges li {
    font-size: 0.66rem;
  }
}

/* === added: photos, gallery, lightbox === */

.about-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.35fr);
  gap: 2.5rem;
  align-items: start;
}

.about-portrait {
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--bg-elevated);
  position: sticky;
  top: calc(var(--header-h) + 1rem);
}

.about-portrait img {
  width: 100%;
  height: auto;
  object-fit: cover;
  object-position: center top;
}

.experience-photos {
  display: grid;
  grid-template-columns: 1.1fr 0.85fr 1.1fr;
  gap: 0.85rem;
  margin: 1.5rem 0 2rem;
}

.experience-photos figure {
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--bg-elevated);
  min-height: 0;
}

.experience-photos a,
.work-gallery a {
  display: block;
  height: 100%;
  color: inherit;
}

.experience-photos img,
.work-gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 4 / 3;
  transition: transform 400ms var(--ease), filter 400ms var(--ease);
}

.experience-photos figure:first-child img {
  aspect-ratio: 4 / 3;
}

.experience-photos figure:nth-child(2) img {
  aspect-ratio: 3 / 4;
}

.experience-photos a:hover img,
.work-gallery a:hover img {
  transform: scale(1.03);
  filter: brightness(1.08);
}

.work-gallery {
  list-style: none;
  margin: 0.5rem 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.85rem;
}

.work-gallery li {
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--bg-elevated);
}

.work-gallery li:nth-child(1) img,
.work-gallery li:nth-child(6) img {
  aspect-ratio: 16 / 10;
}

.work-gallery li:nth-child(2) {
  grid-row: span 2;
}

.work-gallery li:nth-child(2) img {
  aspect-ratio: auto;
  min-height: 100%;
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(8, 7, 6, 0.92);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 3.5rem 4.5rem 2rem;
  gap: 0.75rem;
}

.lightbox[hidden] {
  display: none;
}

.lightbox img {
  max-width: min(1100px, 100%);
  max-height: calc(100vh - 8rem);
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.lightbox-caption {
  margin: 0;
  color: var(--cream-soft);
  font-size: 0.95rem;
  text-align: center;
  max-width: 50rem;
}

.lightbox-close,
.lightbox-prev,
.lightbox-next {
  position: absolute;
  background: transparent;
  border: 0;
  color: var(--cream);
  cursor: pointer;
  font-size: 2rem;
  line-height: 1;
  padding: 0.4rem 0.7rem;
}

.lightbox-close {
  top: 0.7rem;
  right: 0.8rem;
  font-size: 2.2rem;
}

.lightbox-prev,
.lightbox-next {
  top: 50%;
  transform: translateY(-50%);
}

.lightbox-prev { left: 0.4rem; }
.lightbox-next { right: 0.4rem; }

.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover {
  color: var(--gold-bright);
}

@media (max-width: 980px) {
  .about-layout,
  .experience-photos,
  .work-gallery {
    grid-template-columns: 1fr 1fr;
  }

  .about-portrait {
    position: static;
    max-width: 320px;
  }

  .work-gallery li:nth-child(2) {
    grid-row: auto;
  }
}

@media (max-width: 560px) {
  .about-layout,
  .experience-photos,
  .work-gallery {
    grid-template-columns: 1fr;
  }

  .about-portrait {
    max-width: 260px;
  }

  .lightbox {
    padding: 3.5rem 1rem 1.5rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .experience-photos img,
  .work-gallery img {
    transition: none;
  }
}

/* === mobile hero order === */
@media (max-width: 760px) {
  .hero-copy { display: contents; }
  .hero-grid {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0.85rem;
  }
  .hero-id { order: 1; }
  .hero-portrait {
    order: 2;
    width: min(68%, 250px);
    margin: 0.15rem auto 0.35rem;
    justify-self: center;
  }
  .tagline { order: 3; margin-bottom: 0.85rem; }
  .hero-copy .cert-badges { order: 4; margin-top: 0.2rem; }
  .hero-actions { order: 5; }
  .hero h1 {
    font-size: clamp(3.1rem, 16vw, 4.1rem);
    margin-bottom: 0.55rem;
  }
  .aliases { margin-bottom: 0.35rem; }
}

/* === partners list === */
.partners {
  margin-top: 2.4rem;
  padding-top: 1.7rem;
  border-top: 1px solid var(--line);
}

.partners h3 {
  margin: 0 0 0.2rem;
  font-size: 1.5rem;
}

.partners-label {
  margin: 0 0 0.95rem;
  color: var(--muted);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 500;
}

.partner-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.partner-list li {
  padding: 0.5rem 0.9rem;
  border: 1px solid var(--line);
  background: var(--bg-elevated);
  color: var(--cream-soft);
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.01em;
}
