/*
  Guilhem Kuczynski — static rebuild of the Wix site.

  Layout model: each page is a stack of <section class="s">. Inside each,
  a 980px-wide ".stage" holds absolutely placed elements (".at"), mirroring
  the original Wix canvas. Positions come from CSS variables on each element:
    --x, --y  position inside the section (px)
    --w       width (px)
    --h       height (px, optional)
  Below 1000px wide everything drops into a simple single column.
*/

@font-face {
  font-family: "Barlow Condensed"; font-weight: 500; font-style: normal; font-display: swap;
  src: url("/fonts/barlow-condensed-latin-500-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Barlow Condensed"; font-weight: 500; font-style: normal; font-display: swap;
  src: url("/fonts/barlow-condensed-latin-ext-500-normal.woff2") format("woff2");
  unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  /* The original site uses Wix's licensed "DIN Neuzeit Grotesk" (condensed).
     If you buy a web licence, drop the files in /fonts and add an @font-face
     named "DIN Neuzeit Grotesk" — it is first in the stack below. */
  --font: "DIN Neuzeit Grotesk", "Barlow Condensed", "Arial Narrow", sans-serif;
  --bg: #020202;
  --grey-1: #414141;
  --grey-2: #818181;
  --grey-3: #c0c0c0;
  --white: #ffffff;
  --header-h: 100px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--grey-3);
  font: 500 18px/1.4 var(--font);
  letter-spacing: -0.01em;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
a:hover { opacity: .8; }
img { display: block; }
p, h1, h2, h3, h4, h5, h6 { margin: 0; font-weight: 500; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  height: var(--header-h);
  background: rgba(65, 65, 65, .8);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 20px 0 60px;
  transition: transform .2s ease-in;
}
.site-header.retracted { transform: translateY(-100%); }
.logo { font-size: 37px; line-height: 1; color: var(--grey-3); letter-spacing: 0; white-space: nowrap; }
.logo-a { color: #a29c9c; }
.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; }
.site-nav > ul > li { position: relative; min-width: 130px; text-align: center; }
.site-nav .sub a { text-align: center; }
.site-nav a {
  display: block; padding: 12px 10px; font-size: 18px; line-height: 1.4;
  color: var(--grey-2); transition: color .4s ease;
}
.site-nav a:hover, .site-nav a.is-active { color: var(--white); opacity: 1; }
.site-nav .sub {
  display: none; position: absolute; top: 100%; left: 0; min-width: 100%;
  flex-direction: column; background: rgba(65, 65, 65, .8);
}
.site-nav .has-sub:hover .sub, .site-nav .has-sub:focus-within .sub { display: flex; }
.menu-toggle { display: none; }

/* ---------- Sections & stage ---------- */
.s { position: relative; height: var(--h, auto); }
.stage { position: relative; width: 980px; height: 100%; margin: 0 auto; }
.at { display: block; position: absolute; left: var(--x, 0); top: var(--y, 0); width: var(--w, auto); height: var(--h, auto); }
.at > * + * { margin-top: 0; }

/* Full-bleed image strips (Wix "stretched" images) */
.bleed {
  position: absolute; left: 0; top: var(--y, 0);
  width: 100%; height: var(--h); object-fit: cover; object-position: var(--pos, center);
}
.cover { width: 100%; height: 100%; object-fit: cover; object-position: var(--pos, center); }
/* Zoomed crops: --cw (image width as % of box), --cl / --ct (offsets) */
.crop { overflow: hidden; }
.crop img { position: absolute; max-width: none; width: var(--cw); height: auto; left: var(--cl); top: var(--ct); }
.flush > .stage { z-index: 1; }

/* Text */
.t { font-size: var(--fs, 18px); line-height: var(--lh, normal); color: var(--c, var(--grey-3)); text-align: var(--ta, left); }
.t + .t { margin-top: 0; }
.t.gap { margin-top: 1.4em; }
.t a:hover { opacity: .7; }

/* Video embeds */
.embed { position: relative; background: #000; }
.embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* Home: click-to-play video with poster */
.poster-video { position: relative; cursor: pointer; background: #000; overflow: hidden; }
.bleed-box { position: absolute; inset: 0; }
.poster-video img { width: 100%; height: 100%; object-fit: cover; }
.poster-video .play {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  display: flex; align-items: center; gap: 8px; color: var(--white); font-size: 18px; pointer-events: none;
}
.poster-video:has(iframe) .play, .poster-video:has(iframe) img { display: none; }
.poster-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* Pages whose first section runs under the translucent header */
.under-header main { margin-top: calc(-1 * var(--header-h)); }

/* Three-square gallery (home) */
.gallery3 { display: grid; grid-template-columns: repeat(3, 1fr); }
.gallery3 a { position: relative; display: block; overflow: hidden; }
.gallery3 a:hover { opacity: 1; }
.gallery3 img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.gallery3 a::after { content: ""; position: absolute; inset: 0; background: rgba(0, 0, 0, .55); opacity: 0; transition: opacity .4s ease; }
.gallery3 span {
  position: absolute; inset: 0; z-index: 1; display: flex; align-items: center; justify-content: center;
  color: var(--white); font-size: 31px; opacity: 0; transition: opacity .4s ease;
}
.gallery3 a:hover::after, .gallery3 a:focus-visible::after,
.gallery3 a:hover span, .gallery3 a:focus-visible span { opacity: 1; }
/* Touch screens have no hover: show the labels all the time */
@media (hover: none) {
  .gallery3 a::after { opacity: .35; }
  .gallery3 span { opacity: 1; font-size: 18px; }
}

/* Audio players (score samples) */
.track { display: grid; grid-template-columns: 34px 1fr; grid-template-rows: auto auto; column-gap: 14px; align-items: center; height: 70px; }
.track .name { grid-column: 2; font-size: 16px; color: var(--grey-3); align-self: end; }
.track .play {
  grid-row: 1 / span 2; width: 34px; height: 34px; border-radius: 50%;
  border: 1px solid var(--grey-2); background: none; cursor: pointer; position: relative;
}
.track .play::after {
  content: ""; position: absolute; left: 13px; top: 10px;
  border-left: 10px solid var(--grey-3); border-top: 7px solid transparent; border-bottom: 7px solid transparent;
}
.track.playing .play::after { left: 11px; top: 10px; width: 4px; height: 14px; border: 0; border-left: 4px solid var(--grey-3); border-right: 4px solid var(--grey-3); }
.track .bar { grid-column: 2; display: flex; align-items: center; gap: 10px; align-self: start; }
.track input[type=range] { flex: 1; accent-color: var(--grey-3); height: 2px; }
.track .time { font-size: 12px; color: var(--grey-2); white-space: nowrap; font-variant-numeric: tabular-nums; }

/* Contact form */
.form input, .form textarea {
  width: 100%; height: 100%; padding: 10px 12px;
  background: transparent; border: 1px solid var(--grey-2); border-radius: 0;
  color: var(--white); font: 500 16px var(--font); resize: none;
}
.form input::placeholder, .form textarea::placeholder { color: var(--grey-2); }
.form button {
  width: 100%; height: 100%; border: 0; background: var(--grey-2); color: #000;
  font: 500 16px var(--font); cursor: pointer;
}
.form button:hover { background: var(--grey-3); }
.form .msg { color: #bada55; visibility: hidden; }
.form.sent .msg { visibility: visible; }

/* Footer */
.site-footer { height: 365px; background: var(--bg); }

/* ---------- Narrow screens: single column ---------- */
@media (max-width: 1000px) {
  :root { --header-h: 64px; }
  .site-header { padding: 0 16px; }
  .logo { font-size: 26px; }
  .menu-toggle {
    display: flex; flex-direction: column; gap: 5px; background: none; border: 0; padding: 8px; cursor: pointer;
  }
  .menu-toggle span { width: 24px; height: 2px; background: var(--grey-3); }
  .site-nav {
    display: none; position: absolute; top: var(--header-h); left: 0; right: 0;
    background: rgba(40, 40, 40, .97); padding: 8px 16px 16px;
  }
  .site-nav.open { display: block; }
  .site-nav ul { flex-direction: column; }
  .site-nav .sub { display: flex; position: static; background: none; padding-left: 16px; }
  .site-nav a { font-size: 22px; padding: 8px 0; text-align: left !important; }
  .site-nav > ul > li { min-width: 0; text-align: left; }

  .s { height: auto !important; padding: 24px 16px; overflow: visible; }
  .s.flush { padding: 0; }
  .stage { width: auto; height: auto; }
  .at { position: static; width: auto !important; height: auto; margin: 0 0 18px; }
  .at.media { aspect-ratio: var(--ar, 16 / 9); height: auto !important; }
  .hide-m { display: none !important; }
  .scores .at.media { width: 140px !important; margin-top: 24px; }
  .at.media > img { width: 100%; height: 100%; }
  .bleed { position: static; height: auto; aspect-ratio: var(--ar, 3 / 2); }
  .s.flush > .stage { position: absolute; inset: 0; pointer-events: none; }
  .s.flush .overlay { position: absolute; left: 16px; bottom: 16px; margin: 0; }
  .s.flush .overlay.center-m { left: 16px; right: 16px; top: 50%; bottom: auto; transform: translateY(-50%); }
  .bleed-box { position: relative; aspect-ratio: 1185 / 496; }
  .under-header main { margin-top: 0; }
  .crop { position: relative; }
  .t { font-size: min(var(--fs, 18px), max(18px, calc(var(--fs, 18px) * .55))); line-height: 1.3; }
  .form .at { margin-bottom: 12px; }
  .form input, .form button { height: 46px; }
  .form textarea { height: 160px; }
  .site-footer { height: 120px; }
}
