/* reinierwink.com — recreated from the "Reinier Wink Dark" design handoff. */

@font-face { font-family: 'Yale New'; src: url('assets/fonts/Yale2024-Roman.otf') format('opentype'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'Yale New'; src: url('assets/fonts/Yale2024-Italic.otf') format('opentype'); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: 'Yale New'; src: url('assets/fonts/Yale2024-Bold.otf') format('opentype'); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: 'Yale New'; src: url('assets/fonts/Yale2024-BoldItalic.otf') format('opentype'); font-weight: 700; font-style: italic; font-display: swap; }
@font-face { font-family: 'Articulat CF'; src: url('assets/fonts/ArticulatCF-Thin.ttf') format('truetype'); font-weight: 100; font-style: normal; font-display: swap; }
@font-face { font-family: 'Articulat CF'; src: url('assets/fonts/ArticulatCF-Normal.ttf') format('truetype'); font-weight: 400; font-style: normal; font-display: swap; }

:root {
  --bg: #111111;
  --text: #F4F2EE;
  --text-2: #D9D8D4;
  --muted: #8A8A8E;
  --rule: #3A3A3C;

  --serif: 'Yale New', Georgia, serif;
  --sans: 'Articulat CF', system-ui, sans-serif;

  --gutter: clamp(24px, 6vw, 88px);
  --max: 1320px;
  --label-col: 220px;
  --col-gap: clamp(32px, 5vw, 72px);
  --signature: 432px;
}

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

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
}

a { color: var(--text); text-decoration: none; }
a:hover { color: var(--text-2); }
::selection { background: var(--rule); }
input, textarea, select, button { font: inherit; color: inherit; }
input::placeholder, textarea::placeholder { color: var(--muted); }
:focus-visible { outline: 1px solid var(--text); outline-offset: 3px; }
img { display: block; max-width: 100%; }
figure { margin: 0; }

/* Shared */

.label {
  margin: 0;
  font-family: var(--sans);
  font-size: 22px;
  font-weight: 400;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--muted);
}

.row {
  max-width: var(--max);
  margin: 0 auto;
  padding-inline: var(--gutter);
  display: grid;
  grid-template-columns: var(--label-col) 1fr;
  column-gap: var(--col-gap);
  align-items: start;
}

.prose p {
  margin: 0;
  max-width: 34em;
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 400;
  line-height: 1.8;
  color: var(--text);
}

.bleed img { width: 100%; height: auto; filter: grayscale(1); }
.bleed--performance img {
  aspect-ratio: 21 / 9;
  object-fit: cover;
  object-position: 50% 30%;
  filter: grayscale(1) contrast(1.04);
}

.rule { height: 1px; border: 0; margin: 0 var(--gutter); background: var(--rule); }

/* 1. Cover */

.hero { position: relative; height: 100vh; height: 100svh; min-height: 460px; overflow: hidden; }
.hero__image {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover; object-position: 26% 8%;
  filter: grayscale(1);
}
.hero__shade {
  position: absolute; inset: 0;
  background: linear-gradient(to bottom, rgba(17,17,17,0.62) 0%, rgba(17,17,17,0.12) 34%, rgba(17,17,17,0.28) 62%, rgba(17,17,17,0.92) 100%);
}
.hero__inner {
  position: relative;
  height: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 40px var(--gutter) 48px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: flex-end;
}
.hero__nav {
  position: absolute;
  top: 40px;
  right: var(--gutter);
  width: var(--signature);
  display: flex;
  justify-content: center;
  gap: 34px;
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}
.hero__nav a, .hero__scroll, .footer__meta a { color: var(--text-2); }
.hero__nav a:hover, .hero__scroll:hover, .footer__meta a:hover { color: var(--text); }

.hero__title {
  position: absolute;
  top: 50%;
  right: var(--gutter);
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}
.hero__signature {
  width: var(--signature);
  height: auto;
  filter: invert(1);
  transform: rotate(2.5deg);
  transform-origin: 100% 50%;
  margin-bottom: -16px;
}
.hero__subhead {
  margin: 0;
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--text-2);
}

.hero__scroll {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}
.hero__chevron {
  display: block;
  width: 8px; height: 8px;
  border-right: 1px solid currentColor;
  border-bottom: 1px solid currentColor;
  transform: rotate(45deg);
  animation: scrollcue 2.4s ease-in-out infinite;
}
@keyframes scrollcue {
  0%, 100% { transform: translateY(0) rotate(45deg); opacity: 0.55; }
  50% { transform: translateY(7px) rotate(45deg); opacity: 1; }
}

/* 2. Biography */

.row--intro { padding-top: clamp(64px, 9vw, 128px); padding-bottom: 40px; }
.row--intro .label { margin-top: 8px; }

.bio {
  max-width: 1100px;
  margin: 0 auto;
  padding: 72px var(--gutter) 48px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
  gap: clamp(28px, 4vw, 56px);
  font-family: var(--serif);
  font-size: 20px;
  line-height: 1.8;
}
.bio__col { display: grid; gap: 28px; }
.bio p { margin: 0; }

/* 3. Awards / Education / Instruments */

.accordions { padding: 40px 0 clamp(64px, 9vw, 128px); }
.accordion { row-gap: 28px; }
.accordion:not(:last-child) { padding-bottom: 28px; }
.accordion__heading { margin: 0; font: inherit; }
.accordion__toggle {
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 14px;
  text-align: left;
}
.accordion__toggle:hover { color: var(--text); }
.accordion__toggle svg { display: block; flex-shrink: 0; transition: transform 0.2s ease; }
.accordion__toggle[aria-expanded="true"] svg { transform: rotate(180deg); }
.accordion__panel { grid-column: 2; display: grid; gap: 44px; }
.accordion__panel[hidden] { display: none; }
.accordion:not(:last-child) .accordion__panel { margin-bottom: 44px; }

/* 5. Recordings */

.recordings {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(56px, 8vw, 104px) var(--gutter);
}
.recordings__label { margin-bottom: clamp(32px, 4vw, 52px); }
.recordings__list { display: grid; gap: clamp(80px, 11vw, 152px); }
.recording__frame { aspect-ratio: 16 / 9; background: #000; }
.recording__frame iframe { display: block; width: 100%; height: 100%; border: 0; }
.recording figcaption { margin-top: 18px; }
.recording__title {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(24px, 2.4vw, 32px);
  line-height: 1.25;
}
.recording__movement {
  margin: 10px 0 0;
  font-size: 17px;
  letter-spacing: 0.02em;
  color: var(--text-2);
}

/* 6. Booking */

.booking { padding-block: clamp(56px, 8vw, 112px); row-gap: 40px; }
.booking__aside .label { margin-bottom: 24px; }
.booking__email {
  font-family: var(--serif);
  font-size: 17px;
  color: var(--text-2);
  border-bottom: 1px solid var(--rule);
  padding-bottom: 2px;
  overflow-wrap: anywhere;
}
.booking__email:hover { color: var(--text); border-bottom-color: var(--text); }
.booking__headline {
  margin: 0 0 32px;
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(28px, 3.2vw, 44px);
  line-height: 1.14;
}
.booking__intro {
  margin: 0 0 clamp(32px, 4vw, 48px);
  max-width: 44em;
  font-family: var(--serif);
  font-size: 18px;
  line-height: 1.7;
  color: var(--text-2);
}

.form { display: grid; gap: 28px; max-width: 760px; }
.form__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; }
.field { display: grid; gap: 10px; }
.field__label { font-size: 13px; letter-spacing: 0.16em; text-transform: uppercase; }
.field input, .field textarea {
  width: 100%;
  min-width: 0;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--rule);
  border-radius: 0;
  padding: 10px 0;
  font-family: var(--serif);
  font-size: 18px;
}
.field input[type="date"] { color-scheme: dark; min-height: 1.6em; }
.field textarea { resize: vertical; }
.field input:focus, .field textarea:focus { outline: none; border-bottom-color: var(--text); }

.form__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 24px; margin-top: 8px; }
.button {
  background: transparent;
  border: 1px solid var(--text);
  border-radius: 0;
  padding: 18px 42px;
  font-size: 16px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  cursor: pointer;
}
.button:hover { background: var(--text); color: var(--bg); }
.form__status { font-family: var(--serif); font-size: 17px; color: var(--text-2); }

/* 7. Footer */

.footer { border-top: 1px solid var(--rule); margin: 0 var(--gutter); }
.footer__inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 40px 0 56px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
}
.footer__signature { width: 150px; height: auto; filter: invert(1); transform: rotate(2.5deg); transform-origin: 0% 50%; }
.footer__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 28px;
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-2);
}

/* Scroll motion — only when JS has added .motion to <html> and the visitor hasn't asked for reduced motion. */

:root { --ease-out: cubic-bezier(0.2, 0.7, 0.2, 1); }

.motion [data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 1.1s var(--ease-out) var(--d, 0s), transform 1.1s var(--ease-out) var(--d, 0s);
}
.motion [data-reveal].is-visible { opacity: 1; transform: none; }
.motion .bio__col + .bio__col [data-reveal] { --d: 0.15s; }
.motion .bleed--bio[data-reveal] { transform: none; transition-duration: 1.6s; }

/* Cover: the signature writes itself in, then the subhead, nav and scroll cue follow. */
.motion .hero__image { will-change: transform; }
.motion .hero__inner { will-change: opacity, transform; }
.motion:not(.is-loading) .hero__signature { animation: sign-in 1.8s var(--ease-out) 0.2s both; }
.motion:not(.is-loading) .hero__subhead { animation: fade-up 1s var(--ease-out) 1.4s both; }
.motion:not(.is-loading) .hero__nav,
.motion:not(.is-loading) .hero__scroll { animation: fade-in 1.2s ease 1.8s both; }
.motion.is-loading .hero__signature,
.motion.is-loading .hero__subhead,
.motion.is-loading .hero__nav,
.motion.is-loading .hero__scroll { opacity: 0; }

@keyframes sign-in {
  from { clip-path: inset(-20% 100% -20% 0); opacity: 0.4; }
  to { clip-path: inset(-20% 0 -20% 0); opacity: 1; }
}
@keyframes fade-up { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }

/* Performance photo drifts against the scroll; the script sets --shift. */
.motion [data-parallax] { overflow: hidden; }
.motion [data-parallax] img { transform: translate3d(0, var(--shift, 0%), 0) scale(1.14); will-change: transform; }

/* Accordion text eases in when opened. */
.motion .accordion__panel:not([hidden]) { animation: fade-up 0.5s var(--ease-out); }

/* Loading screen — shown only with .motion; the script removes .is-loading once the cover is ready. */

.loader { display: none; }
.motion .loader {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 28px;
  background: var(--bg);
  transition: opacity 0.9s var(--ease-out), visibility 0s linear 0.9s;
  /* Safety net: never cover the page for long, even if the script fails. */
  animation: loader-timeout 0s linear 8s forwards;
}
.motion:not(.is-loading) .loader { opacity: 0; visibility: hidden; }
.is-loading { overflow: hidden; }

.fholes { width: auto; height: min(120px, 18vh); color: var(--text); opacity: 0.5; overflow: visible; transition: opacity 0.7s ease; }
/* The f-holes fade out completely on black before the loading screen lifts. */
.is-leaving .fholes,
.motion:not(.is-loading) .fholes { opacity: 0; }
.motion .fholes__hole { transform-box: fill-box; animation: fhole-cut 1.3s cubic-bezier(0.6, 0.05, 0.3, 1) 0.3s both; }

/* The g is rotated, so a top-to-bottom reveal on screen is a left-to-right inset on the path. */
@keyframes fhole-cut {
  from { clip-path: inset(-5% 100% -5% -5%); opacity: 0.4; }
  to { clip-path: inset(-5% -5% -5% -5%); opacity: 1; }
}
@keyframes loader-timeout { to { opacity: 0; visibility: hidden; } }

/* Mobile — not in the source design; stacks the label column and centers the cover title. */

@media (max-width: 760px) {
  :root { --signature: min(340px, 82vw); }

  .label { font-size: 18px; }
  .row { grid-template-columns: 1fr; }
  .row--intro { padding-bottom: 32px; }
  .row--intro .label { margin-top: 0; }

  .hero__image { object-position: 30% 8%; }
  .hero__nav { left: var(--gutter); width: auto; gap: 24px; font-size: 11px; }
  .hero__title { left: var(--gutter); top: auto; bottom: 120px; transform: none; }
  .hero__signature { transform-origin: 50% 50%; margin-bottom: -10px; }
  .hero__subhead { font-size: 12px; letter-spacing: 0.26em; }
  .hero__inner { align-items: center; }

  .bleed--performance img { aspect-ratio: 4 / 3; }

  .bio { grid-template-columns: 1fr; padding-top: 48px; font-size: 18px; }
  .prose p { font-size: 18px; }
  .accordion__panel { grid-column: 1; }

  .form__grid { grid-template-columns: 1fr; }
  .button { width: 100%; padding-inline: 24px; }

  .footer__inner { flex-direction: column; align-items: flex-start; }
  .footer__meta { flex-direction: column; }
}
