/* ==========================================================================
   Johnny McDaid — holding page
   Refined-minimal, cinematic dark. Warm charcoal, ivory type, brass accent.
   Type: Cormorant Garamond (display) / Hanken Grotesk (text) — self-hosted.
   ========================================================================== */

:root {
  --bg:        #131110;
  --bg-raised: #1b1815;
  --ink:       #eae4d8;
  --ink-dim:   #a89f90;
  --line:      rgba(234, 228, 216, 0.12);
  --accent:    #c0a468;
  --serif: "Cormorant Garamond", "Iowan Old Style", Palatino, Georgia, serif;
  --sans:  "Hanken Grotesk", "Avenir Next", "Segoe UI", "Helvetica Neue", sans-serif;
  --ease:  cubic-bezier(0.19, 1, 0.22, 1);
  --wrap:  1160px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 1.0625rem/1.7 var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* Film grain over everything, very quiet */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 2000;
  pointer-events: none;
  opacity: 0.035;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)'/%3E%3C/svg%3E");
}

::selection { background: var(--accent); color: #131110; }

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

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

.wrap {
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 4vw, 3rem);
}

/* Placeholder content — obvious in preview, removed before publish */
.placeholder {
  color: var(--ink-dim);
  font-style: italic;
  opacity: 0.75;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 3000;
  padding: 0.75rem 1.25rem;
  background: var(--accent);
  color: #131110;
  font: 600 0.8rem/1 var(--sans);
}
.skip-link:focus { left: 0; }

/* ==========================================================================
   Header
   ========================================================================== */

.site-head {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.1rem clamp(1.25rem, 4vw, 3rem);
  background: rgba(19, 17, 16, 0.72);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.4s;
}
.site-head.is-scrolled { border-bottom-color: var(--line); }

.brand {
  font: 500 0.8rem/1 var(--sans);
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--ink);
}

.site-head nav { display: flex; gap: 1.9rem; }

.site-head nav a {
  font: 400 0.74rem/1 var(--sans);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-dim);
  transition: color 0.3s;
}
.site-head nav a:hover,
.site-head nav a:focus-visible { color: var(--accent); }

@media (max-width: 760px) {
  .site-head nav { display: none; }
}

/* ==========================================================================
   Hero
   ========================================================================== */

.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: flex-start;
  overflow: hidden;
  /* pull hero up behind the sticky header */
  margin-top: -3.6rem;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 65% 58%;
  filter: grayscale(18%) contrast(1.02);
}
/* darken + fade the photo behind the title */
.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, var(--bg) 4%, rgba(19, 17, 16, 0.62) 46%, rgba(19, 17, 16, 0.18) 100%),
    linear-gradient(0deg, var(--bg) 2%, rgba(19, 17, 16, 0) 30%),
    linear-gradient(180deg, rgba(19, 17, 16, 0.6) 0%, rgba(19, 17, 16, 0) 34%);
}

.hero-inner {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding: clamp(7.5rem, 16vh, 11rem) clamp(1.25rem, 4vw, 3rem) 3rem;
}

.hero-kicker {
  margin: 0 0 1.4rem;
  font: 500 0.74rem/1.6 var(--sans);
  letter-spacing: 0.42em;
  text-transform: uppercase;
  color: var(--accent);
}

.hero-name {
  margin: 0;
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(4rem, 13.5vw, 10.5rem);
  line-height: 0.92;
  letter-spacing: 0.015em;
  text-transform: uppercase;
}
.hero-name .line { display: block; }
.hero-name .line + .line { font-weight: 600; }

.hero-line {
  margin: 2rem 0 0;
  max-width: 44ch;
  font: 300 clamp(1.05rem, 1.6vw, 1.3rem)/1.65 var(--sans);
  color: var(--ink-dim);
}

/* staggered entrance */
@keyframes rise-in {
  from { opacity: 0; transform: translateY(38px); }
  to   { opacity: 1; transform: none; }
}
[data-stagger] {
  animation: rise-in 1s var(--ease) both;
}
[data-stagger="1"] { animation-delay: 0.15s; }
[data-stagger="2"] { animation-delay: 0.3s; }
[data-stagger="3"] { animation-delay: 0.45s; }
[data-stagger="4"] { animation-delay: 0.62s; }

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem 0;
  margin: 2.4rem 0 0;
}
.hero-stats > div {
  display: flex;
  flex-direction: column-reverse;
  justify-content: flex-end;
  padding-right: 2.2rem;
}
.hero-stats > div + div {
  border-left: 1px solid rgba(234, 228, 216, 0.18);
  padding-left: 2.2rem;
}
.hero-stats dd {
  margin: 0;
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(1.5rem, 2.6vw, 2.1rem);
  line-height: 1.1;
}
.hero-stats dt {
  margin-top: 0.45rem;
  font: 500 0.6rem/1.5 var(--sans);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-dim);
  max-width: 17ch;
}

.scroll-cue {
  position: absolute;
  z-index: 1;
  bottom: 2.2rem;
  right: clamp(1.5rem, 4vw, 3rem);
  width: 1px;
  height: 64px;
  background: linear-gradient(180deg, transparent, var(--accent));
  animation: cue 2.6s ease-in-out infinite;
}
@keyframes cue {
  0%, 100% { transform: scaleY(0.55); transform-origin: top; opacity: 0.4; }
  50%      { transform: scaleY(1);    transform-origin: top; opacity: 1; }
}

/* ==========================================================================
   Sections — shared
   ========================================================================== */

.section {
  padding-block: clamp(5rem, 12vh, 9rem);
  border-top: 1px solid var(--line);
}

.kicker {
  margin: 0 0 2.8rem;
  font: 500 0.72rem/1 var(--sans);
  letter-spacing: 0.42em;
  text-transform: uppercase;
  color: var(--accent);
}

.section-note {
  margin: 0 0 2.2rem;
  max-width: 58ch;
  color: var(--ink-dim);
  font-weight: 300;
}

/* scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}
.reveal.in-view {
  opacity: 1;
  transform: none;
}

/* ==========================================================================
   Biography
   ========================================================================== */

.bio-grid {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: clamp(2.5rem, 6vw, 5.5rem);
  align-items: start;
}

.bio-pull {
  margin: 0;
  padding: 0;
  border: 0;
}
.bio-pull p {
  margin: 0;
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(1.8rem, 3.4vw, 2.7rem);
  line-height: 1.25;
  letter-spacing: 0.005em;
}
.bio-pull p::before { content: "\201C"; color: var(--accent); }
.bio-pull p::after  { content: "\201D"; color: var(--accent); }

.bio-prose p {
  margin: 0 0 1.4em;
  max-width: 62ch;
  font-weight: 300;
  font-size: 1.0925rem;
}
.bio-prose p:last-child { margin-bottom: 0; }

@media (max-width: 860px) {
  .bio-grid { display: flex; flex-direction: column; }
  .bio-side { order: 2; }
}

/* ==========================================================================
   Highlights / stats
   ========================================================================== */

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 3.2rem 0;
  margin: 0 0 1.2rem;
}

.stat {
  padding: 0.5rem 1.6rem 0.75rem 0;
}
.stat:not(:nth-child(4n + 1)) {
  border-left: 1px solid var(--line);
  padding-left: 1.6rem;
}
@media (max-width: 860px) {
  .stats { grid-template-columns: 1fr 1fr; gap: 2.4rem 0; }
  .stat:not(:nth-child(4n + 1)) { border-left: 0; padding-left: 0; }
  .stat:nth-child(even) { border-left: 1px solid var(--line); padding-left: 1.5rem; }
}

.stat dd {
  margin: 0;
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(2.3rem, 4.2vw, 3.6rem);
  line-height: 1.05;
}
.stat dt {
  margin: 0.8rem 0 0;
  font: 500 0.72rem/1.5 var(--sans);
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--ink-dim);
}
.stat { display: flex; flex-direction: column-reverse; }

.collabs-head {
  margin: 0 0 1.2rem;
  font: 500 0.72rem/1 var(--sans);
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--ink-dim);
}
.collabs-list {
  margin: 0;
  font-family: var(--serif);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(1.5rem, 2.8vw, 2.1rem);
  line-height: 1.55;
  max-width: 34em;
}

/* ==========================================================================
   Credits table
   ========================================================================== */

.table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.credits-table {
  width: 100%;
  min-width: 640px;
  border-collapse: collapse;
  table-layout: fixed;
}

.credits-table th:nth-child(1) { width: 36%; }
.credits-table th:nth-child(2) { width: 31%; }
.credits-table th:nth-child(3) { width: 12%; }
.credits-table th:nth-child(4) { width: 21%; }

.credits-table th {
  text-align: left;
  padding: 0 1rem 1rem 0;
  font: 500 0.7rem/1 var(--sans);
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--ink-dim);
  border-bottom: 1px solid var(--line);
}

.credits-table td {
  padding: 1.05rem 1rem 1.05rem 0;
  border-bottom: 1px solid var(--line);
  vertical-align: baseline;
  font-weight: 300;
}

.credits-table td.song {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.22rem;
  letter-spacing: 0.01em;
}
.credits-table td.year {
  font-variant-numeric: tabular-nums;
  color: var(--ink-dim);
}
.credits-table td.role { color: var(--ink-dim); }

.credits-table tbody tr {
  transition: background 0.25s;
}
.credits-table tbody tr:hover { background: rgba(234, 228, 216, 0.028); }

/* Collaborator voices row (In Their Words) */
.quote-band .kicker { margin-bottom: 3rem; }
.voices {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  margin-top: 3.6rem;
  border-top: 1px solid var(--line);
  padding-top: 2.8rem;
}
.voice {
  margin: 0;
  padding: 0 2.2rem;
}
.voice + .voice { border-left: 1px solid var(--line); }
.voice p {
  margin: 0;
  font-family: var(--serif);
  font-style: italic;
  font-weight: 500;
  font-size: 1.28rem;
  line-height: 1.45;
}
.voice cite {
  display: block;
  margin-top: 1.05rem;
  font: 500 0.68rem/1 var(--sans);
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--ink-dim);
  font-style: normal;
}
@media (max-width: 760px) {
  .voices { grid-template-columns: 1fr; gap: 2.3rem; }
  .voice { padding: 0; }
  .voice + .voice { border-left: 0; border-top: 1px solid var(--line); padding-top: 2.3rem; }
}

/* ==========================================================================
   Listen
   ========================================================================== */

.listen-head {
  margin: -1.6rem 0 1rem;
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(2.2rem, 4.5vw, 3.4rem);
  line-height: 1.1;
}

.embed iframe {
  border: 0;
  border-radius: 14px;
  background: var(--bg-raised);
}

/* ==========================================================================
   Gallery
   ========================================================================== */

.gallery-credit {
  margin: 1.8rem 0 0;
  font: 500 0.7rem/1.6 var(--sans);
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--ink-dim);
}
.gallery-credit a {
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid var(--accent);
  padding-bottom: 0.1em;
  transition: color 0.3s;
}
.gallery-credit a:hover { color: var(--accent); }

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 0.8rem;
}

.g-item {
  margin: 0;
}
.g-item button {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: var(--bg-raised);
  cursor: zoom-in;
  overflow: hidden;
  aspect-ratio: 4 / 5;
}

.g-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(22%);
  transform: scale(1.001);
  transition: filter 0.6s var(--ease), transform 1.2s var(--ease);
}
.g-item button:hover img,
.g-item button:focus-visible img {
  filter: grayscale(0%);
  transform: scale(1.045);
}
.g-item button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* wider tiles span two columns for editorial rhythm; uniform 4/5 below */
@media (min-width: 761px) {
  .g-item:nth-child(6n + 1),
  .g-item:nth-child(6n + 4),
  .g-item:nth-child(8) { grid-column: span 2; }
  .g-item:nth-child(6n + 1) button,
  .g-item:nth-child(6n + 4) button,
  .g-item:nth-child(8) button { aspect-ratio: 3 / 2; }
}

/* ==========================================================================
   Lightbox
   ========================================================================== */

.lightbox {
  border: 0;
  padding: 0;
  background: transparent;
  max-width: 100vw;
  max-height: 100vh;
}
.lightbox::backdrop {
  background: rgba(12, 11, 10, 0.93);
  backdrop-filter: blur(4px);
}
.lightbox figure {
  margin: 0;
}
.lightbox img {
  max-width: 92vw;
  max-height: 82vh;
  object-fit: contain;
}
.lightbox figcaption {
  padding: 0.9rem 0.2rem 0;
  font: 300 0.8rem/1.6 var(--sans);
  letter-spacing: 0.04em;
  color: var(--ink-dim);
  text-align: center;
}
.lightbox-close {
  position: fixed;
  top: 1rem;
  right: 1.4rem;
  border: 0;
  background: transparent;
  color: var(--ink);
  font-size: 2.4rem;
  line-height: 1;
  cursor: pointer;
  opacity: 0.7;
  transition: opacity 0.3s;
}
.lightbox-close:hover { opacity: 1; }

/* ==========================================================================
   Footer
   ========================================================================== */

.site-foot {
  border-top: 1px solid var(--line);
  padding-block: clamp(3.5rem, 8vh, 6rem) 2.5rem;
}

.foot-grid {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 3rem;
  align-items: start;
}
@media (max-width: 760px) {
  .foot-grid { grid-template-columns: 1fr; }
}

.foot-name {
  margin: 0 0 0.4rem;
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.6rem;
  letter-spacing: 0.02em;
}
.foot-sub {
  margin: 0;
  font-size: 0.85rem;
  color: var(--ink-dim);
}

.foot-links {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}
.foot-links a {
  font: 400 0.82rem/1 var(--sans);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-dim);
  transition: color 0.3s;
  width: fit-content;
  border-bottom: 1px solid transparent;
  padding-bottom: 0.2rem;
}
.foot-links a::after { content: "\2197"; margin-left: 0.5em; color: var(--accent); }
.foot-links a:hover,
.foot-links a:focus-visible { color: var(--ink); border-bottom-color: var(--accent); }

.foot-fine {
  margin-top: 3.5rem;
}
.foot-fine p {
  margin: 0;
  font-size: 0.74rem;
  letter-spacing: 0.06em;
  color: var(--ink-dim);
  opacity: 0.75;
}
.foot-fine a { color: inherit; text-decoration: underline; }

/* ==========================================================================
   Timeline (biography sidebar)
   ========================================================================== */

.timeline {
  list-style: none;
  margin: 3.2rem 0 0;
  padding: 0;
}
.timeline li {
  display: grid;
  grid-template-columns: 6ch 1fr;
  gap: 1.1rem;
  padding: 0.8rem 0;
}
.timeline li + li { border-top: 1px solid var(--line); }
.t-year {
  font: 500 0.7rem/1.9 var(--sans);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
}
.t-note {
  font-weight: 300;
  font-size: 0.88rem;
  line-height: 1.6;
  color: var(--ink-dim);
}
.t-note em { font-style: italic; }

/* ==========================================================================
   Landmark works
   ========================================================================== */

.works-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
@media (max-width: 1080px) {
  .works-grid { grid-template-columns: repeat(2, 1fr); }
  /* odd card counts: stretch the last card so no cell sits empty */
  .work:last-child:nth-child(odd) { grid-column: span 2; }
}
@media (max-width: 700px) {
  .works-grid { grid-template-columns: 1fr; }
  .work:last-child:nth-child(odd) { grid-column: auto; }
}
.work {
  background: var(--bg);
  padding: 2.1rem 1.9rem 1.9rem;
  transition: background 0.35s;
}
.work:hover { background: var(--bg-raised); }
.work-title {
  margin: 0;
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.65rem;
  line-height: 1.15;
  letter-spacing: 0.01em;
}
.work-artist {
  margin: 0.45rem 0 0;
  font: 500 0.68rem/1.6 var(--sans);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-dim);
}
.work-stats {
  display: flex;
  gap: 2.6rem;
  margin: 1.5rem 0 1.1rem;
}
.work-stats .wv {
  display: block;
  font-family: var(--serif);
  font-weight: 500;
  font-size: 1.9rem;
  line-height: 1.1;
}
.work-stats .wl {
  display: block;
  margin-top: 0.35rem;
  font: 500 0.62rem/1 var(--sans);
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--ink-dim);
}
.work-note {
  margin: 0;
  font-weight: 300;
  font-size: 0.885rem;
  line-height: 1.65;
  color: var(--ink-dim);
}

/* ==========================================================================
   Content components — statement, honours, quotes
   ========================================================================== */

.statement {
  margin: -1rem 0 1.4rem;
  max-width: 24ch;
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(1.9rem, 3.8vw, 3.1rem);
  line-height: 1.18;
  letter-spacing: 0.005em;
}
.statement em { font-style: italic; }

.statement-sub {
  margin: 0 0 4rem;
  max-width: 62ch;
  font-weight: 300;
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--ink-dim);
}
.statement-sub em { font-style: italic; }

.facts {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 3.5rem;
}
.facts li {
  padding: 0.95rem 0;
  border-top: 1px solid var(--line);
  font-weight: 300;
  font-size: 0.93rem;
  line-height: 1.65;
}
.facts em { font-style: italic; }
@media (max-width: 760px) {
  .facts { grid-template-columns: 1fr; }
}

.stat-note {
  margin: 1.4rem 0 0;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  color: var(--ink-dim);
  opacity: 0.7;
}

.honours {
  list-style: none;
  margin: 3.5rem 0 4.5rem;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}
.honours li {
  font: 500 0.73rem/1.6 var(--sans);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-dim);
}
.honours li::before {
  content: "\2014";
  color: var(--accent);
  margin-right: 0.7em;
}
.honours em { font-style: italic; text-transform: none; }

.bio-pull cite {
  display: block;
  margin-top: 1.4rem;
  font: 500 0.68rem/1 var(--sans);
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--ink-dim);
  font-style: normal;
}

.quote-band { text-align: center; }
.big-quote { margin: 0; padding: 0; border: 0; }
.big-quote p {
  margin: 0 auto;
  max-width: 28ch;
  font-family: var(--serif);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(1.7rem, 3.2vw, 2.6rem);
  line-height: 1.35;
}
.big-quote p::before { content: "\201C"; color: var(--accent); }
.big-quote p::after  { content: "\201D"; color: var(--accent); }
.big-quote cite {
  display: block;
  margin-top: 1.8rem;
  font: 500 0.7rem/1.6 var(--sans);
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--ink-dim);
  font-style: normal;
}

.listen-quote {
  margin: 2.8rem 0 0;
  padding: 0;
  border: 0;
  max-width: 54ch;
}
.listen-quote p {
  margin: 0;
  font-family: var(--serif);
  font-style: italic;
  font-weight: 500;
  font-size: 1.4rem;
  line-height: 1.5;
}
.listen-quote cite {
  display: block;
  margin-top: 1rem;
  font: 500 0.68rem/1 var(--sans);
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--ink-dim);
  font-style: normal;
}

/* ==========================================================================
   Anchor offset + motion preferences
   ========================================================================== */

.section, .site-foot { scroll-margin-top: 4rem; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  [data-stagger] { animation: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .scroll-cue { animation: none; }
  .g-item img { transition: none; }
}
