/* Nathan MacGregor — dark editorial. Zero-dependency static site. */

:root {
  --bg:       #0a0a0a;
  --text:     #e5e5e5;
  --white:    #ffffff;
  --muted:    rgba(255, 255, 255, 0.60);
  --faint:    rgba(255, 255, 255, 0.40);
  --ghost:    rgba(255, 255, 255, 0.22);
  --line:     rgba(255, 255, 255, 0.10);
  --line-2:   rgba(255, 255, 255, 0.06);
  --panel:    rgba(255, 255, 255, 0.045);
  --panel-h:  rgba(255, 255, 255, 0.08);
  --maxw:     1200px;
  --narrow:   880px;
  --sans:     "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --serif:    "Fraunces", Georgia, "Times New Roman", serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-weight: 300;
  font-size: 18px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
::selection { background: var(--white); color: var(--bg); }

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

h1, h2, h3 {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 300;
  line-height: 1.05;
  margin: 0;
  color: var(--white);
}

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 32px; }
.wrap-narrow { max-width: var(--narrow); margin: 0 auto; padding: 0 32px; }

/* micro-label / eyebrow */
.kicker {
  font-family: var(--sans);
  text-transform: uppercase;
  letter-spacing: 0.25em;
  font-size: 10px;
  font-weight: 400;
  color: var(--faint);
  margin: 0 0 24px;
}
.kicker.center { text-align: center; }

/* scroll reveal */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.7s cubic-bezier(.22,1,.36,1), transform 0.7s cubic-bezier(.22,1,.36,1); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }

/* ---------- nav ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  transition: background 0.3s ease, border-color 0.3s ease, backdrop-filter 0.3s ease;
  border-bottom: 1px solid transparent;
}
.nav.scrolled { background: rgba(10, 10, 10, 0.9); backdrop-filter: blur(12px); border-bottom-color: var(--line); }
.nav .wrap { display: flex; align-items: center; justify-content: space-between; height: 86px; }
.nav .brand { font-size: 1.05rem; font-weight: 300; letter-spacing: 0.3em; text-transform: uppercase; color: var(--white); }
.nav nav { display: flex; gap: 34px; }
.nav nav a {
  font-size: 11px; text-transform: uppercase; letter-spacing: 0.2em; color: var(--muted);
  padding-bottom: 2px; border-bottom: 1px solid transparent; transition: color 0.2s, border-color 0.2s;
}
.nav nav a:hover { color: var(--white); border-bottom-color: var(--ghost); }
.nav .burger { display: none; background: none; border: 0; color: var(--white); cursor: pointer; padding: 8px; }
#mobile { display: none; }
@media (max-width: 820px) {
  .nav nav { display: none; }
  .nav .burger { display: block; }
  #mobile:target { display: flex; }
  #mobile {
    position: fixed; inset: 0; z-index: 60; background: var(--bg);
    flex-direction: column; gap: 28px; padding: 100px 40px;
  }
  #mobile a { font-family: var(--serif); font-style: italic; font-size: 2rem; color: var(--white); }
  #mobile .close { position: absolute; top: 28px; right: 32px; font-family: var(--sans); font-style: normal; font-size: 1.6rem; }
}

/* ---------- hero ---------- */
.hero { position: relative; min-height: 100vh; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.hero .bg { position: absolute; inset: 0; z-index: 0; }
.hero .bg img { width: 100%; height: 100%; object-fit: cover; object-position: center; filter: grayscale(1); opacity: 0.38; mix-blend-mode: luminosity; }
.hero .bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(10,10,10,0.4), rgba(10,10,10,0.65) 50%, var(--bg)); }
.hero .inner { position: relative; z-index: 2; text-align: center; padding: 0 24px; max-width: 60rem; display: flex; flex-direction: column; align-items: center; }
.hero h1 { font-size: clamp(3.4rem, 11vw, 6.25rem); letter-spacing: -0.02em; margin-bottom: 14px; text-shadow: 0 8px 40px rgba(0,0,0,0.5); }
.hero .divider { width: 1px; height: 80px; background: var(--line); margin: 34px 0; }
.hero .chev { color: var(--faint); animation: bob 1.6s ease-in-out infinite; }
@keyframes bob { 0%,100% { transform: translateY(0); } 50% { transform: translateY(8px); } }

/* ---------- sections ---------- */
section { padding: 112px 0; }
.bordered { border-top: 1px solid var(--line); }
.sec-head { text-align: center; margin-bottom: 64px; }
.sec-head h2 { font-size: clamp(2.2rem, 5vw, 3rem); }
.sec-head.left { text-align: left; }
h2.big { font-size: clamp(2.4rem, 6vw, 3.4rem); }

/* about */
.about p { color: var(--muted); font-size: 1.18rem; line-height: 1.75; margin: 0 0 22px; }
.about .pull {
  background: var(--panel); border: 1px solid var(--line-2); border-radius: 12px;
  padding: 36px; margin: 40px 0;
}
.about .pull p { font-family: var(--serif); font-style: italic; color: rgba(255,255,255,0.92); font-size: 1.3rem; margin: 0 0 14px; }
.about .pull cite { font-style: normal; text-transform: uppercase; letter-spacing: 0.2em; font-size: 10px; color: var(--faint); }

/* experience */
.exp-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px 56px; }
.col-label { font-size: 10px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--faint); margin: 0 0 20px; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.acts { padding: 32px; border: 1px solid var(--line); border-radius: 12px; background: var(--panel); }
.acts ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.acts li { font-family: var(--serif); font-style: italic; font-size: 1.6rem; color: var(--white); }
.inline-list { color: var(--muted); font-size: 0.95rem; line-height: 2.1; }
.inline-list .dot { color: var(--ghost); margin: 0 10px; }
.inline-list a { color: var(--text); border-bottom: 1px solid rgba(255,255,255,0.18); transition: color 0.2s, border-color 0.2s; }
.inline-list a:hover { color: var(--white); border-bottom-color: var(--white); }
.inline-list .nolink { color: var(--muted); }
.fest { display: flex; flex-wrap: wrap; gap: 8px; }
.fest span { font-size: 9px; text-transform: uppercase; letter-spacing: 0.12em; color: var(--muted); padding: 6px 11px; border: 1px solid var(--line); border-radius: 3px; background: var(--panel); }
@media (max-width: 820px) { .exp-grid { grid-template-columns: 1fr; } }

/* ---- click-to-play facade (shared by listen + watch) ---- */
.facade { position: relative; display: block; width: 100%; padding: 0; cursor: pointer; border: 1px solid var(--line); background: #111; border-radius: 10px; overflow: hidden; transition: border-color 0.2s; font-family: inherit; color: inherit; text-align: left; }
.facade:hover { border-color: var(--ghost); }
.facade .thumb { width: 100%; height: 100%; object-fit: cover; display: block; filter: grayscale(0.25); transition: transform 0.5s ease, filter 0.25s ease; }
.facade:hover .thumb { transform: scale(1.04); filter: grayscale(0); }
.facade .play { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 54px; height: 54px; border-radius: 50%; background: rgba(0,0,0,0.5); border: 1px solid rgba(255,255,255,0.7); display: grid; place-items: center; transition: background 0.2s, transform 0.2s; }
.facade:hover .play { background: rgba(0,0,0,0.72); transform: translate(-50%, -50%) scale(1.07); }
.facade .play::before { content: ""; border-style: solid; border-width: 8px 0 8px 14px; border-color: transparent transparent transparent #fff; margin-left: 3px; }

/* listen */
.release-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 24px; }
.release { margin: 0; }
.release .facade { height: 120px; display: flex; align-items: center; }
.release .facade .thumb { width: 120px; height: 120px; flex: 0 0 120px; filter: grayscale(0.1); }
.release .facade .meta { flex: 1 1 auto; min-width: 0; padding: 0 14px; overflow: hidden; }
.release .facade .meta b { display: block; color: var(--white); font-weight: 400; font-size: 13px; line-height: 1.3; margin-bottom: 4px; }
.release .facade .meta span { font-size: 11px; color: var(--faint); text-transform: uppercase; letter-spacing: 0.1em; }
.release .facade .play { position: static; transform: none; flex: 0 0 auto; width: 40px; height: 40px; margin-right: 16px; background: rgba(255,255,255,0.06); }
.release .facade:hover .play { transform: scale(1.07); background: rgba(255,255,255,0.12); }
.release .facade .play::before { border-width: 7px 0 7px 12px; }
.release .audio-frame { width: 100%; height: 120px; border: 1px solid var(--line); border-radius: 10px; background: #111; display: block; }

/* watch */
.video-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.vid { margin: 0; }
.vid .facade { aspect-ratio: 16/9; }
.vid .v { position: relative; aspect-ratio: 16/9; border-radius: 10px; overflow: hidden; border: 1px solid var(--line); background: #000; }
.vid iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.vid figcaption { margin-top: 12px; font-size: 12px; color: var(--faint); }
.vid figcaption b { display: block; color: var(--white); font-weight: 400; }
@media (max-width: 820px) { .video-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 540px) { .video-grid { grid-template-columns: 1fr; } }

/* teaching / booking duo */
.duo { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 44px; transition: border-color 0.25s, background 0.25s; }
.panel:hover { border-color: var(--ghost); background: var(--panel-h); }
.panel h3 { font-size: 1.9rem; margin-bottom: 18px; }
.panel p { color: var(--muted); margin: 0 0 24px; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.tags span { font-size: 10px; text-transform: uppercase; letter-spacing: 0.12em; color: var(--muted); padding: 6px 12px; border: 1px solid var(--line); border-radius: 999px; }
@media (max-width: 760px) { .duo { grid-template-columns: 1fr; } }

/* buttons */
.btn { display: inline-block; font-family: var(--sans); font-size: 11px; text-transform: uppercase; letter-spacing: 0.2em; padding: 16px 30px; border-radius: 999px; transition: all 0.2s; }
.btn-solid { background: var(--white); color: var(--bg); }
.btn-solid:hover { background: rgba(255,255,255,0.85); }
.btn-line { border: 1px solid var(--ghost); color: var(--white); }
.btn-line:hover { border-color: var(--white); background: rgba(255,255,255,0.06); }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }

/* testimonials */
.t-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.t-card { background: var(--panel); border: 1px solid var(--line-2); border-radius: 14px; padding: 40px; }
.t-quote { font-family: var(--serif); font-style: italic; font-size: 1.18rem; line-height: 1.6; color: rgba(255,255,255,0.92); margin: 0 0 28px; }
.t-by { display: flex; align-items: center; gap: 16px; border-top: 1px solid var(--line); padding-top: 24px; }
.t-avatar { width: 54px; height: 54px; border-radius: 50%; flex: 0 0 54px; overflow: hidden; background: linear-gradient(135deg, rgba(255,255,255,0.14), rgba(255,255,255,0.04)); display: flex; align-items: center; justify-content: center; border: 1px solid var(--line); }
.t-avatar img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.05); }
.t-avatar span { font-family: var(--serif); font-style: italic; font-size: 1.2rem; color: var(--white); }
.t-meta h4 { margin: 0; font-family: var(--sans); font-weight: 500; text-transform: uppercase; letter-spacing: 0.12em; font-size: 11px; color: var(--white); }
.t-meta h4 a { color: inherit; border-bottom: 1px solid var(--ghost); transition: color 0.2s, border-color 0.2s; }
.t-meta h4 a:hover { color: #fff; border-bottom-color: #fff; }
.t-meta p { margin: 4px 0 0; font-size: 12px; color: var(--faint); }
@media (max-width: 760px) { .t-grid { grid-template-columns: 1fr; } }

/* contact */
.contact { text-align: center; }
.contact h2 { font-size: clamp(2.6rem, 7vw, 4rem); margin-bottom: 22px; }
.contact .lead { color: var(--muted); font-size: 1.15rem; max-width: 46ch; margin: 0 auto 44px; }
.cform { max-width: 620px; margin: 0 auto; display: flex; flex-direction: column; gap: 22px; text-align: left; }
.cf-row { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.cf-field { display: flex; flex-direction: column; gap: 8px; }
.cf-field > span { font-size: 10px; text-transform: uppercase; letter-spacing: 0.2em; color: var(--faint); }
.cf-field input, .cf-field textarea { background: transparent; border: 1px solid var(--line); border-radius: 8px; color: var(--text); font-family: var(--sans); font-size: 1rem; padding: 13px 14px; transition: border-color 0.2s; }
.cf-field input:focus, .cf-field textarea:focus { outline: none; border-color: rgba(255,255,255,0.5); }
.cf-field textarea { resize: vertical; min-height: 130px; }
.cf-hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.cf-actions { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.cform button { border: 0; cursor: pointer; }
.cform button:disabled { cursor: default; opacity: 0.7; }
.cf-status { font-size: 12px; letter-spacing: 0.04em; }
.cf-status.ok { color: #a4e7a6; }
.cf-status.err { color: #e89a9a; }
.cf-direct { text-align: center; margin-top: 30px; font-size: 13px; color: var(--faint); }
.cf-direct a { color: var(--text); border-bottom: 1px solid var(--ghost); transition: border-color 0.2s; }
.cf-direct a:hover { border-bottom-color: #fff; }
@media (max-width: 620px) { .cf-row { grid-template-columns: 1fr; } }

/* footer */
.foot { border-top: 1px solid var(--line); padding: 48px 0; }
.foot .ack { display: flex; align-items: flex-start; gap: 18px; padding-bottom: 30px; margin-bottom: 28px; border-bottom: 1px solid var(--line); }
.foot .ack .flag { flex: 0 0 auto; width: 46px; height: 31px; border: 1px solid var(--line); border-radius: 3px; overflow: hidden; display: block; }
.foot .ack .flag svg { width: 100%; height: 100%; display: block; }
.foot .ack p { margin: 0; max-width: 64ch; font-size: 11px; line-height: 1.75; color: var(--faint); font-weight: 300; }
.foot .bar { display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap; }
.foot .brand { font-size: 0.95rem; letter-spacing: 0.3em; text-transform: uppercase; color: var(--white); }
.foot small { color: var(--faint); font-size: 11px; text-transform: uppercase; letter-spacing: 0.15em; }
