/* ============================================================
   Nick Chesnais — public site
   Palette: black, white, orange. Nothing else.
   ============================================================ */

:root{
  --black:#000;
  --panel:#0b0b0b;
  --panel-2:#121212;
  --white:#fff;
  --dim:rgba(255,255,255,.66);
  --faint:rgba(255,255,255,.42);
  --line:rgba(255,255,255,.14);
  --line-soft:rgba(255,255,255,.08);
  --orange:#ff6a00;
  --orange-soft:rgba(255,106,0,.14);
  --sans:-apple-system,BlinkMacSystemFont,"Segoe UI","Helvetica Neue",Helvetica,Arial,sans-serif;
  --wrap:1080px;
}

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

html{
  font-size:16px;
  scroll-behavior:smooth;
  /* Fixed header height, so anchor jumps do not hide the section title. */
  scroll-padding-top:72px;
  -webkit-text-size-adjust:100%;
}

body{
  background:var(--black);
  color:var(--white);
  font-family:var(--sans);
  font-size:1rem;
  line-height:1.6;
  -webkit-font-smoothing:antialiased;
  overflow-x:hidden;
}

img{max-width:100%;display:block}
a{color:var(--orange);text-decoration:none}
a:hover{color:var(--white)}
:focus-visible{outline:2px solid var(--orange);outline-offset:3px}

.wrap{max-width:var(--wrap);margin:0 auto;padding:0 1.5rem;width:100%}

.skip-link{
  position:absolute;left:-9999px;top:0;z-index:100;
  background:var(--orange);color:#000;padding:.7rem 1.2rem;font-weight:700;
}
.skip-link:focus{left:0}

/* ── Header ──────────────────────────────────────────────── */
.site-header{
  position:fixed;top:0;left:0;right:0;z-index:50;
  background:var(--black);
  border-bottom:1px solid var(--line-soft);
}
.header-inner{
  max-width:var(--wrap);margin:0 auto;padding:0 1.5rem;
  height:64px;display:flex;align-items:center;justify-content:space-between;gap:1rem;
}
.brand{display:inline-flex;align-items:center;gap:.55rem}
.brand-name{
  color:var(--white);font-weight:800;font-size:.95rem;
  letter-spacing:.16em;text-transform:uppercase;white-space:nowrap;
}
.brand-name:hover{color:var(--orange)}
.brand-name b{color:var(--orange);font-weight:800}
/* The guitar is a button: it takes you back to the entrance. */
.brand-replay{
  background:none;border:none;padding:.2rem;margin:0;
  display:inline-flex;align-items:center;cursor:pointer;
  transition:transform .15s ease;
}
.brand-replay:hover{transform:rotate(-8deg) scale(1.1)}
.brand-replay:hover .brand-icon{stroke:var(--white)}
.brand-icon{
  width:20px;height:20px;flex-shrink:0;
  fill:none;stroke:var(--orange);stroke-width:1.6;
  stroke-linecap:round;stroke-linejoin:round;
}
.brand-icon-head{stroke-width:2.6}
.nav{display:flex;align-items:center;gap:1.6rem}
.nav a{
  color:var(--dim);font-size:.72rem;font-weight:600;
  letter-spacing:.18em;text-transform:uppercase;
  padding:.4rem 0;border-bottom:2px solid transparent;
}
.nav a:hover,.nav a:focus{color:var(--white);border-bottom-color:var(--orange)}

/* ── Buttons ─────────────────────────────────────────────── */
.btn{
  display:inline-block;font-family:inherit;font-size:.75rem;font-weight:700;
  letter-spacing:.16em;text-transform:uppercase;
  padding:.9rem 1.8rem;border:2px solid var(--orange);
  cursor:pointer;transition:background .15s ease,color .15s ease;
}
.btn-solid{background:var(--orange);color:#000}
.btn-solid:hover{background:#fff;border-color:#fff;color:#000}
.btn-ghost{background:transparent;color:var(--orange)}
.btn-ghost:hover{background:var(--orange);color:#000}
.btn:disabled{opacity:.5;cursor:default}

/* ── Sections ────────────────────────────────────────────── */
.section{padding:5.5rem 0;border-top:1px solid var(--line-soft)}
.section-label{
  font-size:.7rem;font-weight:700;letter-spacing:.28em;text-transform:uppercase;
  color:var(--orange);margin-bottom:.9rem;
}
.section-title{
  font-size:clamp(1.9rem,5vw,3rem);font-weight:800;line-height:1.05;
  letter-spacing:-.02em;text-transform:uppercase;margin-bottom:1.6rem;
}
.lede{color:var(--dim);font-size:1.05rem;max-width:60ch}

/* ── Title block ─────────────────────────────────────────── */
.hero{padding:9rem 0 5rem}
.hero-eyebrow{
  font-size:.72rem;font-weight:700;letter-spacing:.3em;text-transform:uppercase;
  color:var(--orange);margin-bottom:1.2rem;
}
/* The name spans the page. `cqw` measures the wrapper, which already has the
   page padding applied, so the type scales to the exact text width at every
   size; the clamp is the fallback where container queries are unsupported. */
.title-fit{container-type:inline-size}
.hero h1{
  font-size:clamp(2rem,11.8vw,8.25rem);
  font-weight:800;line-height:.92;letter-spacing:-.03em;
  text-transform:uppercase;
}
@supports (container-type:inline-size){
  /* Tuned to fill ~96% of the line. Left wrappable on purpose: if a platform's
     system font is wider than the one this was measured against, the name
     breaks onto two lines rather than overflowing the page. */
  .hero h1{font-size:12.8cqw}
}
.hero h1 .last{color:var(--orange)}
.hero-tagline{
  margin-top:1.5rem;color:var(--dim);font-size:1.15rem;max-width:60ch;
}
.hero-actions{margin-top:2.2rem;display:flex;flex-wrap:wrap;gap:.9rem}

/* ── Bio, with the photo beside it ───────────────────────── */
.bio-grid{display:grid;grid-template-columns:1.35fr 1fr;gap:3.5rem;align-items:start}
.bio-body p{color:var(--dim);margin-bottom:1.2rem;max-width:62ch}
.bio-body p:last-child{margin-bottom:0}
.bio-body strong{color:var(--white);font-weight:600}

/* No forced aspect ratio and no cropping: the frame takes the photo's own
   shape, so portrait or landscape both sit correctly and nothing gets cut off.
   The width/height attributes on the <img> hold the space while it loads —
   keep them matching the file. */
.cover{border:1px solid var(--line);background:var(--black)}
.cover img{width:100%;height:auto}

/* ── Schedule ────────────────────────────────────────────── */
.shows{margin-top:2.5rem;border-top:1px solid var(--line)}
.show{
  display:grid;grid-template-columns:120px 1fr auto;gap:1.5rem;align-items:center;
  padding:1.5rem 0;border-bottom:1px solid var(--line-soft);
}
.show-date{
  font-weight:800;letter-spacing:.06em;text-transform:uppercase;line-height:1.15;
}
.show-date .day{font-size:1.9rem;color:var(--orange);display:block}
.show-date .month{font-size:.72rem;color:var(--faint);display:block;letter-spacing:.22em}
.show-venue{font-size:1.15rem;font-weight:700}
.show-where{
  font-size:.72rem;font-weight:600;letter-spacing:.16em;text-transform:uppercase;
  color:var(--faint);margin-top:.35rem;
}
.show-details{color:var(--dim);font-size:.92rem;margin-top:.5rem;max-width:52ch}
.show-action{text-align:right}
.show-action .btn{padding:.7rem 1.3rem;font-size:.68rem}
.show-action .no-ticket{
  font-size:.68rem;font-weight:600;letter-spacing:.16em;text-transform:uppercase;color:var(--faint);
}
.shows-empty{
  padding:2.5rem 0;border-bottom:1px solid var(--line-soft);
  color:var(--dim);
}
.shows-empty a{font-weight:600}
.shows-note{
  margin-top:1.4rem;font-size:.8rem;color:var(--faint);
}

/* ── Video gallery ───────────────────────────────────────── */
.gallery{
  margin-top:2.5rem;display:grid;gap:1.4rem;
  grid-template-columns:repeat(auto-fill,minmax(280px,1fr));
}
.gallery-empty{
  grid-column:1/-1;padding:2rem 0;border-top:1px solid var(--line-soft);color:var(--dim);
}
.vid-card{
  background:var(--panel);border:1px solid var(--line);
  padding:0;text-align:left;font:inherit;color:inherit;cursor:pointer;
  display:flex;flex-direction:column;
  transition:border-color .15s ease,transform .15s ease;
}
.vid-card:hover{border-color:var(--orange);transform:translateY(-2px)}
.vid-thumb{
  position:relative;aspect-ratio:16/9;background:#0a0a0a;overflow:hidden;
  display:flex;align-items:center;justify-content:center;
}
.vid-thumb img{width:100%;height:100%;object-fit:cover}
.vid-thumb video{width:100%;height:100%;object-fit:cover}
.vid-play{
  position:absolute;inset:0;display:flex;align-items:center;justify-content:center;
  background:rgba(0,0,0,.35);transition:background .15s ease;
}
.vid-card:hover .vid-play{background:rgba(0,0,0,.15)}
.vid-play span{
  width:52px;height:52px;border:2px solid var(--orange);border-radius:50%;
  display:flex;align-items:center;justify-content:center;background:rgba(0,0,0,.55);
}
.vid-play span::after{
  content:'';border-left:14px solid var(--orange);
  border-top:9px solid transparent;border-bottom:9px solid transparent;margin-left:4px;
}
.vid-body{padding:1rem 1.1rem 1.2rem}
.vid-title{font-size:1rem;font-weight:700;line-height:1.3}
.vid-date{
  margin-top:.35rem;font-size:.66rem;font-weight:700;letter-spacing:.16em;
  text-transform:uppercase;color:var(--orange);
}
.vid-desc{margin-top:.6rem;font-size:.88rem;color:var(--dim);line-height:1.55}

/* Player overlay */
.player{
  position:fixed;inset:0;z-index:150;background:rgba(0,0,0,.95);
  display:flex;align-items:center;justify-content:center;padding:1.5rem;overflow-y:auto;
}
.player[hidden]{display:none}
body.player-open{overflow:hidden}
.player-box{width:min(960px,100%)}
.player-frame{
  position:relative;aspect-ratio:16/9;background:#000;
  border:1px solid var(--line);overflow:hidden;
}
.player-frame video,.player-frame iframe{width:100%;height:100%;border:none;display:block;background:#000}
.player-meta{padding:1.2rem 0 0}
.player-meta h3{font-size:1.2rem;font-weight:700}
.player-meta p{color:var(--dim);font-size:.9rem;margin-top:.4rem}
.player-meta p:first-of-type{
  color:var(--orange);font-size:.68rem;font-weight:700;letter-spacing:.16em;text-transform:uppercase;
}
.player-close{
  margin-top:1.2rem;background:none;border:1px solid var(--line);color:var(--dim);
  font:inherit;font-size:.68rem;font-weight:700;letter-spacing:.16em;text-transform:uppercase;
  padding:.6rem 1.3rem;cursor:pointer;
}
.player-close:hover{border-color:var(--orange);color:var(--orange)}

/* ── Contact ─────────────────────────────────────────────── */
.contact-grid{display:grid;grid-template-columns:1fr 1.15fr;gap:3.5rem;align-items:start}
.contact-block{margin-bottom:2rem}
.contact-block h3{
  font-size:.7rem;font-weight:700;letter-spacing:.24em;text-transform:uppercase;
  color:var(--orange);margin-bottom:.7rem;
}
.contact-block p{color:var(--dim);font-size:.95rem}
.contact-list{list-style:none}
.contact-list li{padding:.45rem 0;font-size:.95rem}
.contact-list li span{
  display:block;font-size:.65rem;font-weight:600;letter-spacing:.18em;
  text-transform:uppercase;color:var(--faint);
}
.contact-list a{font-weight:600}

/* Form */
.form{background:var(--panel);border:1px solid var(--line);padding:1.8rem}
.form h3{
  font-size:.7rem;font-weight:700;letter-spacing:.24em;text-transform:uppercase;
  color:var(--orange);margin-bottom:1.3rem;
}
.field{margin-bottom:1.1rem}
.field label{
  display:block;font-size:.65rem;font-weight:700;letter-spacing:.18em;
  text-transform:uppercase;color:var(--faint);margin-bottom:.45rem;
}
.field input,.field select,.field textarea{
  width:100%;background:var(--black);border:1px solid var(--line);
  color:var(--white);font-family:inherit;font-size:.95rem;
  padding:.8rem .9rem;border-radius:0;
}
.field input:focus,.field select:focus,.field textarea:focus{
  outline:none;border-color:var(--orange);
}
.field textarea{min-height:110px;resize:vertical}
.field select option{background:var(--panel-2);color:var(--white)}
.field-row{display:grid;grid-template-columns:1fr 1fr;gap:1.1rem}
.hp{position:absolute;left:-9999px;width:1px;height:1px;overflow:hidden}
.check{display:flex;align-items:flex-start;gap:.6rem;margin-bottom:1.3rem}
.check input{width:16px;height:16px;margin-top:.2rem;accent-color:var(--orange);flex-shrink:0}
.check label{font-size:.85rem;color:var(--dim)}
.form-note{margin-top:.9rem;font-size:.85rem;display:none}
.form-note.ok{display:block;color:var(--orange)}
.form-note.err{display:block;color:var(--white);border-left:2px solid var(--orange);padding-left:.7rem}

/* ── Footer ──────────────────────────────────────────────── */
.site-footer{
  border-top:1px solid var(--line-soft);padding:2.5rem 0;
  font-size:.8rem;color:var(--faint);
}
.footer-inner{display:flex;flex-wrap:wrap;gap:1rem 2rem;justify-content:space-between;align-items:center}
.footer-links{display:flex;flex-wrap:wrap;gap:1.2rem;list-style:none}
.footer-links a{
  color:var(--dim);font-size:.7rem;font-weight:600;
  letter-spacing:.16em;text-transform:uppercase;
}
.footer-links a:hover{color:var(--orange)}

/* ── Entrance ────────────────────────────────────────────────
   A full-screen curtain: stick figure strumming, then Enter plucks six
   strings and the curtain lifts. Only opacity and transform animate, so it
   stays on the compositor and does not touch page layout. */
.intro{
  position:fixed;inset:0;z-index:200;background:var(--black);
  display:flex;flex-direction:column;align-items:center;justify-content:center;
  gap:1.5rem;padding:2rem;
  transition:opacity .45s ease,transform .45s ease;
}
.intro[hidden]{display:none}
body.intro-open{overflow:hidden}

.intro-stage{
  display:flex;flex-direction:column;align-items:center;text-align:center;
  animation:intro-in .5s ease both;
}
@keyframes intro-in{from{opacity:0;transform:translateY(12px)}to{opacity:1;transform:none}}

.intro-figure{width:min(300px,68vw);height:auto;overflow:visible}
.intro-figure .ink{
  fill:none;stroke:var(--white);stroke-width:3.4;
  stroke-linecap:round;stroke-linejoin:round;
}
.intro-figure .gtr-body{stroke:var(--orange);stroke-width:3.8}
.intro-figure .gtr-hole{stroke:var(--orange);stroke-width:2}
.intro-figure .gtr-neck{stroke-width:5}
.intro-figure .gtr-head{stroke-width:7}
.intro-figure .gtr-frets{stroke-width:1.6;opacity:.55}
/* The strumming arm swings from the shoulder. */
.intro-figure .strum-arm{
  transform-box:view-box;transform-origin:94px 58px;
  animation:strum 500ms ease-in-out infinite alternate;
}
@keyframes strum{from{transform:rotate(-8deg)}to{transform:rotate(7deg)}}

.intro-figure .note{
  fill:var(--orange);font-size:20px;font-family:var(--sans);
  opacity:0;animation:float-note 2.4s ease-out infinite;
}
.intro-figure .note-2{animation-delay:.8s}
.intro-figure .note-3{animation-delay:1.6s}
@keyframes float-note{
  0%{opacity:0;transform:translate(0,0) scale(.7)}
  18%{opacity:.9}
  100%{opacity:0;transform:translate(14px,-58px) scale(1.1)}
}

.intro-name{
  margin-top:1.4rem;font-size:clamp(1.7rem,6vw,2.6rem);font-weight:800;
  letter-spacing:-.01em;text-transform:uppercase;line-height:1;
}
.intro-name b{color:var(--orange);font-weight:800}
.intro-sub{
  margin-top:.7rem;font-size:.7rem;font-weight:700;letter-spacing:.24em;
  text-transform:uppercase;color:var(--faint);
}
.intro-btn{margin-top:2rem}

/* Six strings, plucked on the way out. */
.intro-strings{
  position:absolute;inset:0;display:flex;flex-direction:column;
  justify-content:center;gap:min(6vh,54px);pointer-events:none;
}
.intro-strings i{
  display:block;height:2px;background:var(--orange);opacity:0;
  transform:scaleY(.4);
}
.intro.is-strumming .intro-strings i{animation:pluck .62s ease-out both}
.intro.is-strumming .intro-strings i:nth-child(1){animation-delay:0ms}
.intro.is-strumming .intro-strings i:nth-child(2){animation-delay:55ms}
.intro.is-strumming .intro-strings i:nth-child(3){animation-delay:110ms}
.intro.is-strumming .intro-strings i:nth-child(4){animation-delay:165ms}
.intro.is-strumming .intro-strings i:nth-child(5){animation-delay:220ms}
.intro.is-strumming .intro-strings i:nth-child(6){animation-delay:275ms}
@keyframes pluck{
  0%{opacity:0;transform:scaleY(.4)}
  22%{opacity:1;transform:scaleY(4.5)}
  45%{opacity:.85;transform:scaleY(1.6)}
  70%{opacity:.6;transform:scaleY(3)}
  100%{opacity:0;transform:scaleY(.6)}
}

.intro.is-strumming .intro-stage{
  animation:intro-out .5s .18s ease-in both;
}
@keyframes intro-out{to{opacity:0;transform:translateY(-18px) scale(.97)}}

.intro.is-leaving{opacity:0;transform:scale(1.04)}

/* Nothing else on this page animates on scroll, and nothing is hidden until
   JavaScript runs — the content is painted once and then holds still. */
@media (prefers-reduced-motion:reduce){
  html{scroll-behavior:auto}
  *{animation-duration:.001ms!important;transition-duration:.001ms!important}
}

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width:860px){
  .hero{padding:7rem 0 3.5rem}
  .bio-grid,.contact-grid{grid-template-columns:1fr;gap:2.5rem}
  .section{padding:4rem 0}
  .nav{gap:1.1rem}
  .nav a{font-size:.66rem;letter-spacing:.12em}
  .show{grid-template-columns:88px 1fr;gap:1.1rem}
  .show-action{grid-column:2;text-align:left}
}

@media (max-width:560px){
  .brand{font-size:.8rem;letter-spacing:.12em}
  .header-inner{height:58px;gap:.5rem}
  .nav{gap:.8rem}
  .field-row{grid-template-columns:1fr}
  .form{padding:1.3rem}
  .fact{flex-direction:column;gap:.2rem}
  .fact dd{text-align:left}
}
