:root {
  color-scheme: dark;
  --bg: #05070a;
  --bg-alt: #10131a;
  --theme-color: #05070a;
  --text: #f5f5f7;
  --muted: #9ca3af;
  --accent: #facc15;
  --card-bg: #111827;
  --border: #1f2933;
  --font-sans: system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Text", sans-serif;
}

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

html {
  background-color: #05070a;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  /* Solid first so iOS status bar samples #05070a; gradient on top for the blue look */
  background-color: #05070a;
  background-image: radial-gradient(circle at top, #111827 0, #020617 60%);
  color: var(--text);
  line-height: 1.5;
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(12px);
  background: linear-gradient(to bottom, rgba(2, 6, 23, 0.95), rgba(2, 6, 23, 0.8));
  border-bottom: 1px solid rgba(148, 163, 184, 0.15);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1.25rem;
}

.logo-area {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.jw-wordmark {
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.9rem;
  color: inherit;
  text-decoration: none;
}

.logo-area a:hover {
  text-decoration: none;
  color: var(--text);
}

.nexus-logo {
  height: 20px;
  opacity: 0.8;
}

.main-nav {
  display: none;
  gap: 1rem;
  font-size: 0.85rem;
}

.main-nav a {
  color: var(--muted);
}

.main-nav a:hover {
  color: var(--text);
}

.lang-toggle {
  display: flex;
  gap: 0.25rem;
}

.lang-toggle button {
  border: 1px solid rgba(148, 163, 184, 0.4);
  background: transparent;
  color: var(--muted);
  font-size: 0.7rem;
  padding: 0.25rem 0.5rem;
  border-radius: 999px;
  cursor: pointer;
}

.lang-toggle button.active {
  background: var(--accent);
  color: #111827;
  border-color: transparent;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 2rem;
  padding: 4rem 1.25rem 3rem;
  max-width: 1120px;
  margin: 0 auto;
  align-items: start;
}

.hero-text > p:first-of-type {
  margin-top: 0;
}

.hero-text h1 {
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  line-height: 1.1;
  margin: 0.5rem 0 1rem;
}

.kicker {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.75rem;
  color: var(--accent);
}

.hero-subtitle {
  color: var(--muted);
  max-width: 34rem;
}

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-top: 1.75rem;
}

.stat-number {
  display: block;
  font-size: 1.4rem;
  font-weight: 600;
}

.stat-label {
  display: block;
  font-size: 0.8rem;
  color: var(--muted);
}

.hero-image {
  align-self: start;
  /* Skub billedet ned så det alignes med toppen af h1 ("Awarded more than...") */
  margin-top: 2.4rem;
}

.hero-image img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 1.5rem;
  border: 1px solid rgba(148, 163, 184, 0.3);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.7);
}

/* Stack on mobile: hero and Story two-column become single column */
@media (max-width: 767px) {
  .hero {
    grid-template-columns: 1fr;
    padding: 2rem 1.25rem 2.5rem;
    gap: 1.5rem;
  }
  .hero-image {
    display: flex;
    justify-content: center;
    margin-top: 0; /* under teksten på mobil – ingen ekstra luft */
  }
  .hero-image img {
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 280px;
    object-fit: contain;
  }
  .two-column {
    grid-template-columns: 1fr;
  }
  .story-portrait {
    display: block;
    margin-left: auto;
    margin-right: auto;
  }
  .story-portrait img {
    max-width: 280px;
  }
}

/* Sections */

.section {
  padding: 2.5rem 1.25rem 2.75rem;
  max-width: 1120px;
  margin: 0 auto;
}

.section-header h2 {
  font-size: 1.4rem;
  margin: 0 0 1.5rem;
}

.section-header {
  border-bottom: 1px solid rgba(148, 163, 184, 0.2);
  margin-bottom: 1.5rem;
  padding-bottom: 0.75rem;
}

.section-intro {
  font-size: 0.9rem;
  color: var(--muted);
  margin-bottom: 1.5rem;
}

.stats {
  font-size: 0.8rem;
  color: var(--accent);
  margin: 0 0 0.9rem;
  line-height: 1.4;
  letter-spacing: 0.01em;
}

.credit-note {
  font-size:0.85rem;
  color:var(--muted);
  margin-top:0.5rem;
}
.highlights {
  list-style: none;
  margin: 0.8rem 0 0;
  padding-left: 1rem;
  border-left: 2px solid rgba(255, 255, 255, 0.08);
  font-size: 0.85rem;
  color: var(--muted);
}

.highlights li {
  margin: 0.45rem 0;
  line-height: 1.5;
}

.highlights strong {
  color: var(--text);
  font-weight: 600;
}

.artists-more {
  margin-top: 1.5rem;
  font-size: 0.9rem;
  color: var(--muted);
}

.two-column {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1.4fr);
  gap: 2rem;
  align-items: start; /* kolonner strækkes ikke – portræt-rammen følger billedhøjden */
}

/* Første brødtekst og portræt alignes i toppen */
.story-left > p:first-of-type {
  margin-top: 0;
}

@media (max-width: 767px) {
  .two-column {
    grid-template-columns: 1fr;
  }
}

.story-sidebar {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.story-portrait {
  display: inline-block;
  width: fit-content;
  max-width: 100%;
  align-self: start; /* rammen følger billedets højde – strækkes ikke med grid-cellen */
  border-radius: 1rem;
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.2);
}

.story-portrait img {
  display: block;
  max-width: 100%;
  width: auto;
  height: auto;
  vertical-align: middle;
}

.timeline ul {
  list-style: none;
  padding: 0;
  margin: 0.5rem 0 0;
}

.timeline li {
  font-size: 0.9rem;
  color: var(--muted);
  margin-bottom: 0.5rem;
}

/* Cards */

.card-image {
  margin: -1.25rem -1.4rem 1rem -1.4rem;
  border-radius: 1.1rem 1.1rem 0 0;
  overflow: hidden;
  background: var(--card-bg);
}

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

/* Hide card image block if you don't have an image yet (add class .is-empty and use CSS, or remove the .card-image div) */
.card-image.is-empty,
.card-image:empty {
  display: none;
}

.card-image--international img {
  /* ingen fast aspect-ratio – rammen følger billedets størrelse */
}

.card-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1.5rem;
}

.card {
  background: var(--card-bg);
  border-radius: 1.1rem;
  padding: 1.25rem 1.4rem;
  border: 1px solid rgba(148, 163, 184, 0.2);
}

.card h3 {
  margin: 0 0 0.35rem;
  font-size: 1.2rem;
  line-height: 1.15;
}

.card h4 {
  margin: 1rem 0 0.45rem;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text);
}

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

.key-tracks {
  list-style: none;
  padding-left: 0;
  margin-top: 0.75rem;
  font-size: 0.85rem;
  color: var(--muted);
}

.full-discography-link {
  display: inline-block;
  margin-bottom: 0.5rem;
  font-weight: 500;
}

/* Discography (full page) */

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.filters select {
  background: #020617;
  color: var(--text);
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.5);
  padding: 0.3rem 0.9rem;
  font-size: 0.8rem;
}

.table-wrapper {
  overflow-x: auto;
  border-radius: 1rem;
  border: 1px solid rgba(148, 163, 184, 0.3);
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.8rem;
}

thead {
  background: rgba(15, 23, 42, 0.9);
}

th,
td {
  padding: 0.6rem 0.75rem;
  border-bottom: 1px solid rgba(15, 23, 42, 0.9);
  text-align: left;
}

tbody tr:nth-child(odd) {
  background: rgba(15, 23, 42, 0.7);
}

/* Discography table polish */
.table-wrapper{
  overflow:auto;
  border:1px solid rgba(255,255,255,0.08);
  border-radius:12px;
}

#discography-table{
  width:100%;
  border-collapse:separate;
  border-spacing:0;
  min-width: 920px; /* makes desktop layout stable */
}

#discography-table thead th{
  position: sticky;
  top: 0;
  z-index: 2;
  background: rgba(10,10,10,0.95);
  backdrop-filter: blur(10px);
  border-bottom:1px solid rgba(255,255,255,0.08);
  text-align:left;
  padding:12px 14px;
  font-size:0.85rem;
  letter-spacing:0.02em;
}

#discography-table tbody td{
  padding:12px 14px;
  border-bottom:1px solid rgba(255,255,255,0.06);
  vertical-align:top;
}

#discography-table tbody tr:nth-child(odd){
  background: rgba(255,255,255,0.02);
}

#discography-table tbody tr:hover{
  background: rgba(255,255,255,0.045);
}

#discography-table td:nth-child(3), /* Year */
#discography-table td:nth-child(6){ /* Peak */
  white-space:nowrap;
}

#discography-table td:nth-child(7){ /* Certifications */
  white-space:nowrap;
}

/* Filters row: make it feel like a toolbar */
.filters{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  align-items:center;
  margin: 1rem 0;
}

#filter-search{
  flex: 1 1 220px;
  padding: 10px 12px;
  border-radius: 10px;
  border:1px solid rgba(255,255,255,0.10);
  background: rgba(255,255,255,0.04);
  color: var(--text);
}

#filter-search::placeholder{
  color: rgba(255,255,255,0.45);
}

.results-count{
  color: var(--muted);
  font-size: 0.85rem;
  margin-left:auto;
}

/* Mobile: turn rows into cards (no horizontal scrolling) */
@media (max-width: 860px){
  .table-wrapper{ overflow: visible; border:none; }
  #discography-table{ min-width: 0; }

  #discography-table thead{
    display:none;
  }

  #discography-table,
  #discography-table tbody,
  #discography-table tr,
  #discography-table td{
    display:block;
    width:100%;
  }

  #discography-table tbody tr{
    border:1px solid rgba(255,255,255,0.10);
    background: rgba(255,255,255,0.03);
    border-radius: 14px;
    margin: 0 0 12px;
    overflow:hidden;
  }

  #discography-table tbody td{
    border-bottom:1px solid rgba(255,255,255,0.06);
    display:flex;
    gap:10px;
    justify-content:space-between;
  }

  #discography-table tbody td::before{
    content: attr(data-label);
    color: rgba(255,255,255,0.55);
    font-size:0.8rem;
    padding-right:12px;
    white-space:nowrap;
  }

  #discography-table tbody td:last-child{
    border-bottom:none;
  }
}

/* Awards */

.awards-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1rem;
}

.award-card {
  background: var(--card-bg);
  border-radius: 1.1rem;
  padding: 1.1rem 1.3rem;
  border: 1px solid rgba(148, 163, 184, 0.25);
}

.award-card .stat-number {
  font-size: 1.4rem;
}

/* Reel / Showreel */
.reel-section .reel-intro {
  margin: 0 0 1rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.video-wrap {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%;
  margin: 1rem 0;
  border-radius: 0.75rem;
  overflow: hidden;
  background: #000;
}

.video-wrap iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.reel-link {
  margin: 0.5rem 0 0;
  font-size: 0.9rem;
}

.contact-sep {
  color: var(--muted);
  margin: 0 0.25rem;
}

/* Press */

.press-list {
  list-style: none;
  padding-left: 0;
  font-size: 0.9rem;
  color: var(--muted);
}

/* Footer */

.site-footer {
  border-top: 1px solid rgba(148, 163, 184, 0.3);
  padding: 1.25rem;
  text-align: center;
  font-size: 0.8rem;
  color: var(--muted);
}

/* Responsive */

@media (min-width: 768px) {
  .main-nav {
    display: flex;
  }

  .hero {
    padding-top: 5rem;
  }

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

  .awards-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}