/* Michael Touratzidis.
   Layout: a cinematic black stage. Monochrome video stills, one high-contrast Greek serif,
   tiny sans labels at the edges, colour only when a song is chosen.
   Dark-only by design: the work is presented like a film. */
:root {
  --bg: #0b0a09;
  --bg-2: #141210;
  --ink: #ece7e1;
  --ink-2: #a9a29b;
  --ink-3: #6f6963;
  --line: rgb(236 231 225 / .14);
  --accent: #c2412f;
  --serif: "Noto Serif Display", "Didot", "Bodoni 72", Georgia, serif;
  --sans: "Manrope", system-ui, sans-serif;
  --ease: cubic-bezier(.16, 1, .3, 1);
  --ease-io: cubic-bezier(.76, 0, .24, 1);
  --gut: max(20px, 3.4vw);
  /* z: player 70, grain 60, nav 50 */
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--sans); font-size: 16px; line-height: 1.6;
  -webkit-font-smoothing: antialiased; overflow-x: clip;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; text-align: inherit; }
em { font-style: italic; }
::selection { background: var(--ink); color: var(--bg); }
:focus-visible { outline: 1px solid var(--ink); outline-offset: 4px; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 80; background: var(--ink); color: var(--bg); padding: 8px 14px; }
.skip:focus { left: 8px; }
.i { width: 1em; height: 1em; flex: none; }

.grain {
  position: fixed; inset: -50%; z-index: 60; pointer-events: none; opacity: .055;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* small caps label used at the edges */
.nav, .hero__role, .hero__now-label, .credit__label, .voices__label, .footer, .link, .work__artist, .work__views, .ioulia__facts dd {
  font-size: 12px; letter-spacing: .14em; text-transform: uppercase; font-weight: 500;
}

/* ---------- nav ---------- */
.nav {
  position: fixed; inset: 0 0 auto; z-index: 50;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: calc(22px + env(safe-area-inset-top, 0px)) var(--gut) 22px;
  mix-blend-mode: difference; color: #fff;
}
.nav a { text-decoration: none; }
.nav__brand { font-weight: 600; }
.nav__links { display: flex; gap: clamp(18px, 2.6vw, 44px); }
.nav__links a { position: relative; opacity: .8; transition: opacity .3s; }
.nav__links a:hover { opacity: 1; }
.nav__links a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform .6s var(--ease); }
.nav__links a:hover::after { transform: scaleX(1); transform-origin: left; }
@media (max-width: 760px) { .nav__links { display: none; } }

/* ---------- hero ---------- */
.hero { position: relative; height: 100dvh; min-height: 620px; overflow: hidden; isolation: isolate; }
.hero__stage { position: absolute; top: 0; bottom: 0; right: 0; width: 56%; z-index: -1; overflow: hidden; }
.hero__stage::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, var(--bg) 0%, rgb(11 10 9 / .35) 22%, rgb(11 10 9 / 0) 45%), linear-gradient(0deg, rgb(11 10 9 / .7) 0%, rgb(11 10 9 / 0) 30%);
}
.slide {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 20%;
  opacity: 0; transform: scale(1.08); transition: opacity 1.6s var(--ease-io), transform 7s linear;
}
.slide.is-on { opacity: 1; transform: scale(1); }
.slide[data-video=""] { object-position: 50% 50%; }
.hero__name {
  position: absolute; left: var(--gut); right: var(--gut); top: 50%; transform: translateY(-50%);
  margin: 0; font-family: var(--serif); font-weight: 300; line-height: .9; letter-spacing: -.035em;
  font-size: clamp(64px, 12.4vw, 236px); pointer-events: none;
}
.hero__line { display: block; white-space: nowrap; }
.hero__line--it { font-style: italic; font-weight: 300; padding-left: .55em; }
.hero__line .ch { display: inline-block; }
.hero__foot {
  position: absolute; left: var(--gut); right: var(--gut); bottom: calc(28px + env(safe-area-inset-bottom, 0px));
  display: flex; justify-content: space-between; align-items: flex-end; gap: 24px;
}
.hero__role { margin: 0; color: var(--ink-2); line-height: 1.7; }
.hero__now { display: grid; gap: 4px; justify-items: end; text-align: right; min-width: 220px; }
.hero__now-label { color: var(--ink-3); }
.hero__now-song { font-family: var(--serif); font-size: 26px; line-height: 1.1; font-style: italic; }
.hero__now-artist { font-size: 13px; color: var(--ink-2); }
.hero__progress { display: block; width: 100%; height: 1px; margin-top: 10px; background: var(--line); overflow: hidden; }
.hero__progress span { display: block; height: 100%; background: var(--ink); transform-origin: left; transform: scaleX(0); }
.hero__progress.is-run span { animation: progress var(--slide-ms, 6000ms) linear forwards; }
@keyframes progress { to { transform: scaleX(1); } }
.hero__now:hover .hero__now-song { color: var(--accent); }
@media (max-width: 760px) {
  .hero__stage { width: 100%; }
  .hero__stage::after { background: linear-gradient(0deg, var(--bg) 8%, rgb(11 10 9 / .2) 55%, rgb(11 10 9 / .55) 100%); }
  .hero__name { top: auto; bottom: 200px; transform: none; font-size: clamp(54px, 17vw, 96px); }
  .hero__now-song { font-size: 22px; }
  .slide[data-video=""] { object-position: 38% 50%; }
  .hero__line--it { padding-left: .3em; }
  .hero__now { min-width: 0; }
}

/* ---------- statement ---------- */
.statement {
  padding: clamp(120px, 18vw, 260px) var(--gut) clamp(100px, 14vw, 200px);
  display: grid; grid-template-columns: 1.5fr 1fr; gap: clamp(40px, 6vw, 120px); align-items: end;
}
.statement__portrait { margin: 0; display: grid; gap: 12px; }
.statement__portrait img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 55% 30%; filter: contrast(1.05); }
.statement__portrait figcaption { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); }
@media (max-width: 900px) {
  .statement { grid-template-columns: 1fr; }
  .statement__portrait { max-width: 420px; }
}
.statement__text {
  margin: 0; max-width: 20ch; font-family: var(--serif); font-weight: 300;
  font-size: clamp(36px, 5.4vw, 92px); line-height: 1.04; letter-spacing: -.02em; text-wrap: balance;
}
.statement__text .w { transition: color .4s; }
.js .statement__text.is-scrub .w { color: var(--ink-3); }
.js .statement__text.is-scrub .w.is-lit { color: var(--ink); }

/* ---------- credits ---------- */
.credits { padding: clamp(40px, 6vw, 80px) var(--gut) clamp(120px, 14vw, 200px); display: grid; gap: clamp(64px, 9vw, 130px); justify-items: center; text-align: center; }
.credit { display: grid; gap: 14px; justify-items: center; }
.credit__label { color: var(--ink-3); }
.credit__num { font-family: var(--serif); font-weight: 300; font-size: clamp(56px, 9.5vw, 170px); line-height: .95; letter-spacing: -.03em; font-variant-numeric: lining-nums tabular-nums; }
.credits > .credit .credit__num { font-size: clamp(54px, 11.5vw, 210px); }
.credit__note { font-family: var(--serif); font-style: italic; font-size: 20px; color: var(--ink-2); }
.credits__row { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(32px, 6vw, 100px); width: 100%; max-width: 1300px; }
.credits__row .credit__num { font-size: clamp(56px, 6.6vw, 120px); }
@media (max-width: 760px) { .credits__row { grid-template-columns: 1fr; } }

/* ---------- works ---------- */
.works { padding: 0 var(--gut) clamp(120px, 14vw, 200px); }
.works__head { display: flex; align-items: baseline; justify-content: space-between; gap: 20px; padding-bottom: 28px; border-bottom: 1px solid var(--line); }
.h2 { margin: 0; font-family: var(--serif); font-weight: 300; font-size: clamp(52px, 7vw, 120px); line-height: .95; letter-spacing: -.03em; }
.h2 em { font-weight: 300; }
.link { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; color: var(--ink-2); transition: color .3s; }
.link .i { transition: transform .4s var(--ease); }
.link:hover { color: var(--ink); }
.link:hover .i { transform: translate(2px, -2px); }
.works__body { display: grid; grid-template-columns: 1fr minmax(320px, 40%); gap: clamp(32px, 5vw, 90px); align-items: start; }
.works__list { list-style: none; margin: 0; padding: 0; counter-reset: w; }
.work {
  position: relative; width: 100%; display: grid; grid-template-columns: 1fr auto; grid-template-rows: auto auto; column-gap: 24px;
  padding: 22px 0; border-bottom: 1px solid var(--line);
}
.work__song { font-family: var(--serif); font-weight: 300; font-size: clamp(30px, 3.1vw, 54px); line-height: 1.02; letter-spacing: -.02em; transition: transform .7s var(--ease), color .3s; }
.work__artist { grid-row: 2; color: var(--ink-3); margin-top: 6px; transition: color .3s; }
.work__views { grid-row: 1 / 3; grid-column: 2; align-self: center; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.work__thumb { display: none; }
.works__list:hover .work .work__song { color: var(--ink-3); }
.works__list .work:hover .work__song, .work:focus-visible .work__song, .work.is-active .work__song { color: var(--ink); transform: translateX(14px); font-style: italic; }
.work:hover .work__artist, .work.is-active .work__artist { color: var(--ink-2); }
.works__preview { position: sticky; top: 18vh; }
.works__frame { position: relative; aspect-ratio: 2.1 / 1; cursor: pointer; overflow: hidden; background: var(--bg-2); }
.works__frame img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 18%; transition: opacity .5s, transform 1.2s var(--ease); }
.works__frame img.is-swap { opacity: 0; transform: scale(1.04); }
.works__play {
  position: absolute; right: 16px; bottom: 16px; width: 56px; height: 56px; border-radius: 50%;
  display: grid; place-items: center; background: rgb(11 10 9 / .55); backdrop-filter: blur(8px); border: 1px solid rgb(236 231 225 / .3);
}
.works__play .i { width: 20px; height: 20px; margin-left: 3px; }
@media (max-width: 900px) {
  .works__body { grid-template-columns: 1fr; }
  .works__preview { display: none; }
  .work { grid-template-columns: 96px 1fr auto; column-gap: 16px; align-items: center; }
  .work__thumb { display: block; grid-row: 1 / 3; grid-column: 1; width: 96px; aspect-ratio: 16 / 9; object-fit: cover; }
  .work__song { grid-column: 2; font-size: 26px; }
  .work__artist { grid-column: 2; font-size: 11px; }
  .work__views { grid-column: 3; }
}

/* ---------- ioulia ---------- */
.ioulia { display: grid; grid-template-columns: 1fr 1fr; min-height: 100dvh; border-top: 1px solid var(--line); }
.ioulia__media { margin: 0; position: relative; overflow: hidden; }
.ioulia__media img { position: absolute; inset: -6% 0; width: 100%; height: 112%; object-fit: cover; object-position: 50% 15%; }
.ioulia__text { display: flex; flex-direction: column; justify-content: center; gap: 36px; padding: clamp(64px, 8vw, 140px) var(--gut) clamp(64px, 8vw, 140px) clamp(32px, 6vw, 120px); }
.ioulia__lead { margin: 0; max-width: 40ch; font-family: var(--serif); font-weight: 300; font-size: clamp(21px, 1.7vw, 28px); line-height: 1.4; color: var(--ink-2); }
.ioulia__facts { margin: 0; display: grid; gap: 0; max-width: 520px; }
.ioulia__facts div { display: flex; justify-content: space-between; align-items: baseline; gap: 24px; padding: 16px 0; border-top: 1px solid var(--line); }
.ioulia__facts dt { font-family: var(--serif); font-style: italic; font-size: 24px; }
.ioulia__facts dd { margin: 0; color: var(--ink-3); text-align: right; }
@media (max-width: 900px) {
  .ioulia { grid-template-columns: 1fr; min-height: 0; }
  .ioulia__media { aspect-ratio: 4 / 5; }
  .ioulia__text { padding: 56px var(--gut) 80px; }
}

/* ---------- voices ---------- */
.voices { padding: clamp(120px, 14vw, 220px) var(--gut) clamp(100px, 12vw, 180px); border-top: 1px solid var(--line); }
.voices__label { margin: 0 0 32px; color: var(--ink-3); }
.voices__text { margin: 0; max-width: 28ch; font-family: var(--serif); font-weight: 300; font-size: clamp(32px, 4.2vw, 72px); line-height: 1.12; letter-spacing: -.02em; color: var(--ink-2); text-wrap: pretty; }
.voices__text em { color: var(--ink); }

/* ---------- follow ---------- */
.follow { padding: 0 var(--gut) clamp(100px, 12vw, 180px); }
.follow__list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0 clamp(28px, 4vw, 72px); }
.follow__list a {
  display: inline-block; text-decoration: none; font-family: var(--serif); font-weight: 300;
  font-size: clamp(44px, 7.6vw, 136px); line-height: 1.05; letter-spacing: -.03em; transition: color .3s;
}
.follow__list:hover a { color: var(--ink-3); }
.follow__list a:hover { color: var(--ink); font-style: italic; }
.follow__list sup { font-family: var(--sans); font-size: 12px; letter-spacing: .14em; vertical-align: top; position: relative; top: 1.2em; margin-left: 6px; color: var(--ink-3); font-style: normal; }

/* ---------- footer ---------- */
.footer { padding: 28px var(--gut) calc(32px + env(safe-area-inset-bottom, 0px)); border-top: 1px solid var(--line); color: var(--ink-3); }
.footer__row { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.footer a { color: var(--ink-2); text-decoration: none; }
.footer a:hover { color: var(--ink); }
.footer__note { margin: 20px 0 0; max-width: 90ch; text-transform: none; letter-spacing: 0; font-size: 12px; font-weight: 400; }
.footer__note a { text-decoration: underline; text-underline-offset: 3px; }

/* ---------- player ---------- */
.player { width: min(1200px, 92vw); max-width: none; padding: 0; border: 0; background: transparent; overflow: visible; color: var(--ink); }
.player::backdrop { background: rgb(6 5 5 / .92); }
.player[open] { animation: rise .7s var(--ease); }
.player__frame { aspect-ratio: 16 / 9; background: #000; }
.player__frame iframe { width: 100%; height: 100%; border: 0; display: block; }
.player__close { position: absolute; top: -52px; right: 0; width: 40px; height: 40px; display: grid; place-items: center; }
.player__close .i { width: 22px; height: 22px; }
@keyframes rise { from { opacity: 0; transform: translateY(24px); } }

/* ---------- intro + reveals ---------- */
@media (prefers-reduced-motion: no-preference) {
  .js .hero__line .ch { opacity: 0; transform: translateY(.35em); filter: blur(8px); transition: opacity 1.2s var(--ease), transform 1.4s var(--ease), filter 1.2s var(--ease); }
  .js .hero.is-ready .hero__line .ch { opacity: 1; transform: none; filter: none; }
  .js .hero__stage { clip-path: inset(100% 0 0 0); transition: clip-path 1.8s var(--ease-io) .2s; }
  .js .hero.is-ready .hero__stage { clip-path: inset(0 0 0 0); }
  .js .hero__foot { opacity: 0; transition: opacity 1.2s 1.3s; }
  .js .hero.is-ready .hero__foot { opacity: 1; }
  .js .reveal { opacity: 0; transform: translateY(40px); transition: opacity 1.2s var(--ease), transform 1.4s var(--ease); }
  .js .reveal.is-in { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  .slide { transition: opacity .4s; transform: none !important; }
}

/* ---------- privacy page ---------- */
.doc { padding: 150px var(--gut) 100px; }
.doc__inner { max-width: 820px; margin: 0 auto; }
.doc h1 { font-family: var(--serif); font-weight: 300; letter-spacing: -.03em; font-size: clamp(56px, 8vw, 112px); line-height: .95; margin: 0 0 20px; }
.doc .meta { color: var(--ink-3); font-size: 14px; margin: 0 0 48px; }
.doc h2 { font-family: var(--serif); font-weight: 400; font-size: 32px; letter-spacing: -.01em; line-height: 1.1; margin: 56px 0 14px; }
.doc p, .doc li { color: var(--ink-2); }
.doc ul { padding-left: 20px; }
.doc li { margin: 6px 0; }
.doc a { color: var(--ink); text-decoration-color: var(--ink-3); text-underline-offset: 3px; }
.doc .summary { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 22px 0; }
.doc .summary p { margin: 0; }
.back { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; color: var(--ink-2); margin-bottom: 40px; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; }
.back:hover { color: var(--ink); }
